User forums > Help
codeblocks 8.02 and Visual C++ Toolkit 2003 prob
chaser:
i have add User32.lib to linker and error´s
so i have made a new project with self code and
i have charge from the wa.cbp
--- Code: ---<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="wa" />
<Option pch_mode="2" />
<Option compiler="msvctk" />
<Build>
<Target title="Debug">
<Option output="bin\Debug\wa" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Debug\" />
<Option type="1" />
<Option compiler="msvctk" />
<Compiler>
<Add option="/Zi" />
<Add option="/D_DEBUG" />
<Add option="/MTd" />
</Compiler>
<Linker>
<Add option="/DEBUG" />
<Add library="libcmtd.lib" />
<Add library="libcpmtd.lib" />
</Linker>
</Target>
<Target title="Release">
<Option output="bin\Release\wa" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Release\" />
<Option type="1" />
<Option compiler="msvctk" />
<Compiler>
<Add option="/Og" />
<Add option="/Ox" />
<Add option="/DNDEBUG" />
<Add option="/MT" />
</Compiler>
<Linker>
<Add library="libcmt.lib" />
<Add library="libcpmt.lib" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="/W3" />
<Add option="/EHsc" />
</Compiler>
<Unit filename="main.cpp" />
<Extensions>
<code_completion />
<envvars />
<debugger />
<lib_finder disable_auto="1" />
</Extensions>
</Project>
</CodeBlocks_project_file>
--- End code ---
to from a old scource cpb
--- Code: ---<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="2" />
<Project>
<Option title="wa" />
<Option pch_mode="0" />
<Option compiler="1" />
<Build>
<Target title="default">
<Option output="wa.exe" />
<Option type="0" />
<Option compiler="1" />
<Option includeInTargetAll="1" />
<Option projectResourceIncludeDirsRelation="-1" />
</Target>
</Build>
<Linker>
<Add library="gdi32" />
<Add library="user32" />
<Add library="kernel32" />
</Linker>
<Unit filename="main.cpp">
<Option compilerVar="CPP" />
<Option target="default" />
</Unit>
</Project>
</CodeBlocks_project_file>
--- End code ---
and i can compile
i have not include lib User32.lib
and he work , i can build no errrors :shock:
What settings should I do in codeblocks 8.02 ?
:?
Deschamps:
--- Quote ---What settings should I do in codeblocks 8.02 ?
--- End quote ---
It seems obviuos to me that you are using these libraries in the second project (which is running fine) and they aren't included for the first one:
--- Code: ---<Add library="gdi32" />
<Add library="user32" />
<Add library="kernel32" />
--- End code ---
So, maybe adding those libraries to your build targets in your project could solve your problems.
Regards.
chaser:
sorry i have errors on the pc and laptop to build :?
over 4 day´s i have lock and search to this problems with the newer codeblocks 8.02
sorry Since I am a beginner :P
Where is the difference between CodeBlocks-1.0rc2 to codeblocks 8.02
It may not be at CodeBlocks-1.0rc2 work build no problems make
and codeblocks 8.02 make many problems
sorry I would like to know what everything is set to be not that I in a few days again had problems
Navigation
[0] Message Index
[*] Previous page
Go to full version