User forums > Help

Invalid argument when I include boost headers and link with boost libraries

<< < (2/2)

stahta01:
Check the setting for each target.
The left column you have the project highlighted; highlight each target (one at a time) and check their settings.

Tim S.

ericjoe:

--- Quote from: stahta01 on September 14, 2015, 12:40:51 pm ---Check the setting for each target.
The left column you have the project highlighted; highlight each target (one at a time) and check their settings.

Tim S.

--- End quote ---

Hi Tim,

I have checked the settings (Linker Settings, and Search directories -> Compiler and Linker) on each highlighted target (Debug, Release, Linux, Win32), each of them are empty.

What should I do with the Linker Settings, Search directories -> Compiler and Linker?

Should I follow what I have done for those settings when the Project Name (most top word) at the left column is highlighted?

Thank you

stahta01:

--- Quote from: ericjoe on September 14, 2015, 03:09:13 pm ---
--- Quote from: stahta01 on September 14, 2015, 12:40:51 pm ---Check the setting for each target.
The left column you have the project highlighted; highlight each target (one at a time) and check their settings.

Tim S.

--- End quote ---

Hi Tim,

I have checked the settings (Linker Settings, and Search directories -> Compiler and Linker) on each highlighted target (Debug, Release, Linux, Win32), each of them are empty.

What should I do with the Linker Settings, Search directories -> Compiler and Linker?

Should I follow what I have done for those settings when the Project Name (most top word) at the left column is highlighted?

Thank you

--- End quote ---


--- Code: ---mingw32-g++.exe: error: C:\Program Files\CodeBlocks\lib*.a: Invalid argument

--- End code ---

You have to find out where you put the setting that caused the error you reported!

Edit: You may have passed the linker setting in the Global Compiler settings area.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_I_would_like_to_compile_a_project_using_some_non-standard_libraries._How_can_I_indicate_to_CodeBlocks_that_these_libraries_and_include_files_exist.3F

Tim S.

ericjoe:

--- Quote from: stahta01 on September 15, 2015, 12:00:06 am ---
--- Quote from: ericjoe on September 14, 2015, 03:09:13 pm ---
--- Quote from: stahta01 on September 14, 2015, 12:40:51 pm ---Check the setting for each target.
The left column you have the project highlighted; highlight each target (one at a time) and check their settings.

Tim S.

--- End quote ---

Hi Tim,

I have checked the settings (Linker Settings, and Search directories -> Compiler and Linker) on each highlighted target (Debug, Release, Linux, Win32), each of them are empty.

What should I do with the Linker Settings, Search directories -> Compiler and Linker?

Should I follow what I have done for those settings when the Project Name (most top word) at the left column is highlighted?

Thank you

--- End quote ---


--- Code: ---mingw32-g++.exe: error: C:\Program Files\CodeBlocks\lib*.a: Invalid argument

--- End code ---

You have to find out where you put the setting that caused the error you reported!

Edit: You may have passed the linker setting in the Global Compiler settings area.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_I_would_like_to_compile_a_project_using_some_non-standard_libraries._How_can_I_indicate_to_CodeBlocks_that_these_libraries_and_include_files_exist.3F

Tim S.

--- End quote ---

Hi Tim,

Thank you for your hint. I managed to solve the problem.

I have accidentally passed the linker settings in Settings -> Compiler -> (Global compiler settings highlighted at the left column) -> Linker Settings tab.

After I removed the "C:\Program Files\CodeBlocks\lib*.a" in the Linker Settings, when I rebuild, then build and run, the exe file is running.

Thank you once again.

Navigation

[0] Message Index

[*] Previous page

Go to full version