User forums > Using Code::Blocks
Transfering project from VS to CodeBlocks
user321:
I'm trying to compile some code from this website http://headsoft.com.au/index.php?category=vjoy (SDK C++) in CodeBlocks.
Its working in VS (there is .dsp file), but I don't really like it. So I created new project in CodeBlocks included all files, linked library (I think I dd it good), but I just can't get it to compile :S
If I press "Keep this relative path"> Yes while adding library, then I get error ld.exe||cannot find -lVJoy.lib
If I press "Keep this relative path"> No while adding library, then I get following error :
obj\Debug\x\main.o||In function `main':|
\main.cpp|12|undefined reference to `_imp___Z15VJoy_InitializePcS_@8'|
\main.cpp|20|undefined reference to `_imp___Z19VJoy_UpdateJoyStateiP15_JOYSTICK_STATE@8'|
\main.cpp|22|undefined reference to `_imp___Z13VJoy_Shutdownv@0'|
||=== Build finished: 3 errors, 0 warnings (0 minutes, 0 seconds) ===|
stahta01:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
user321:
Thanks for the link, I didn't know its possible to import VC++ project, but even when I import this project which is working flawlessly on VC, its getting me same errors as before. I know that errors are about linking library, but why are they happening :S
BTW
I encountered CodeBlocks crash.
First I clicked on import Visual C++, then import Visual Studio project while project was opened, select compiler... and crash each time. would be nice to fix this.
oBFusCATed:
about the crash: Start with your OS/C::B/compiler versions. Guessing them would be impossible, because my magic ball is out of mana!
user321:
oh sorry, I forgot to mention ???
I am using Windows 7 x64
Codeblocks 12.11
and compiler is the standard one which comes with 12.11 (GNU)
Maybe someone else could also try to import that project and maybe confirm crash?
once I import .dsp file, guess it somehow locks .vcproj (overwrites?) , and when it tries to open it ... crashes?
Navigation
[0] Message Index
[#] Next page
Go to full version