Author Topic: Extra flags are passes only when building each file but not when assembling them  (Read 2571 times)

Offline dhia hassen

  • Single posting newcomer
  • *
  • Posts: 3
I am passing '-Wl-wrap,symbole' flag to mingw32++.exe ( default compiler ) via code::blocks using 'additional compiler flags' option in project's build options , the additional flags were passes to the compiler correctly when i build the project as i van see in the build log , but when code::blocks is executing the final command 'mingw++32.exe -o projeect.exe ....' the extra flags i added are not passes , they are only passes when building a single file seperatly , even if i add thé flags to thé compiler options outside thé project ( global settings ) from thé settings menu ..... how can i fore code::blocks to pass the extra compiler options to the compiler at thé final command , il using the last version of code::blocks .

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7589
    • My Best Post
Compiler Flags are passed to the Compiler Step.
Linker Flags are passed to the linker step.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline dhia hassen

  • Single posting newcomer
  • *
  • Posts: 3
Works like a sharm , sorry for anoying this helped alot , i hope it helps others , thanks