This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 220761 - GCC 4.6 less tolerant of wrong flag ordering.
Summary: GCC 4.6 less tolerant of wrong flag ordering.
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.2.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-24 13:32 UTC by mohit.wrangler
Modified: 2012-10-25 17:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screen shot of netbeans build log and other screenshot for terminal gcc command example (241.98 KB, image/png)
2012-10-24 13:32 UTC, mohit.wrangler
Details
Specify lirary (88.51 KB, image/png)
2012-10-25 15:48 UTC, Alexander Simon
Details
Or specify flag (86.92 KB, image/png)
2012-10-25 15:49 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mohit.wrangler 2012-10-24 13:32:09 UTC
Created attachment 126474 [details]
screen shot of netbeans build log and   other screenshot for terminal gcc command example

while building C program in netbeans.

> in the compiling linking flags has to be inserted 'after' the command.
  
> example creating executable file from objective file and linking gcc math.h

  gcc -lm main.o  // doesn't work anymore
  
  gcc main.o -lm  // is correct
  
>  netbeans 7.2.1  while buiding uses flags before commands and hence build        fails. 

> neither i find any option to customise flag positions in commands.

> attched screen shot and following URL further clarify it.

    http://ubuntuforums.org/showthread.php?p=11339484
Comment 1 soldatov 2012-10-25 12:17:42 UTC
Build|Linker|Libraries is more correct filed in your case
Comment 2 Alexander Simon 2012-10-25 15:40:47 UTC
You should specify libraries or put libraries flags in the right place
Comment 3 Alexander Simon 2012-10-25 15:48:38 UTC
Created attachment 126560 [details]
Specify lirary
Comment 4 Alexander Simon 2012-10-25 15:49:19 UTC
Created attachment 126561 [details]
Or specify flag
Comment 5 Alexander Simon 2012-10-25 16:40:34 UTC
Sorry, I got a problem.
Comment 6 Alexander Simon 2012-10-25 16:56:13 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/ef604be9ccf8
Comment 7 mohit.wrangler 2012-10-25 17:19:26 UTC
(In reply to comment #6)
> fixed, change set:
> http://hg.netbeans.org/cnd-main/rev/ef604be9ccf8


 Thank you Simon. You people are really pretty fast in fixing bugs.