User forums > Help

Code::Blocks/Borland Compiler 5.5/ cout << stringVar error [solved]

<< < (3/3)

Joe:
Problem Solved:

The issue boils down to the linker libraries included in your project.
There are two library files that need to be present, and there are two places within C::B where you can add them.

By default, when I create a console application in C::B, two library files are automatically added to the project:
   - cw32mt.lib
   - import32.lib

I found these files in the C::B IDE on the main menu:
   - Project/Build Options.../[Project build options form will open.]
   - In the listbox hierarchy select the [project name]
      - Not the [Debug] or [Release] options
   - Select the [Linker settings] tab
      - [Link libraries] listbox contains the library files for the project
   - On my system the files cw32mt.lib and import32.lib are listed
      
I changed the cw32mt.lib file to cw32.lib and the console application compiled, linked and ran as expected.

The second place in C::B to add, remove or change libraries can be found on the main menu:
   - Settings/Compiler and debugger.../[Compiler and debugger settings form will open.]
   - In the listbox hierarchy select [Global compiler settings]
   - Select the [Linker settings] tab
   - Libraries can be added, removed here and will be included with every project.

If I add the needed libraries in the global compiler section, it includes them as well as those two default files in the project section. Working on that issue now.

Navigation

[0] Message Index

[*] Previous page

Go to full version