Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: _Ray_ on January 14, 2009, 09:11:23 am
-
Hi.
I use Code::Blocks 8.02 with VC++ 6 compiler.
When I building my dll in VC++6 and try to use output dll - all is ok.
But, when I try to build the dll in Code::Blocks with VC++6 compiler - the dll is compiling, but
not working in my project.
I think, that problem in preferences of my Code::Blocks, but I don't find anything.
Can anybody help me?
-
Turn on Full compiler logging and see if you can see any difference in the commands CB uses and the working commands.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
Tim S
-
What you mean,saying "if you can see any difference in the commands" ?
What difference?
I use VC6 compiler in CB and in MS VC6.
And in both cases compiler say that all is ok and give me my dll. But after compiling the dll in vc6 working.If compiling in BC - no :(
-
What you mean,saying "if you can see any difference in the commands" ?
What difference?
I use VC6 compiler in CB and in MS VC6.
And in both cases compiler say that all is ok and give me my dll. But after compiling the dll in vc6 working.If compiling in BC - no :(
I give up helping you; you need to figure out how to use the compiler directly or at least how to follow directions on how to display the command given to the compiler.
I suggest looking for beginning programmers forum for you to learn the basics.
Tim S
-
I know,how to use compiler :x
Thank...
-
I know,how to use compiler :x
Thank...
So, on the cmd.exe prompt what commands work when you type them in.
Compare them to the commands the IDE, like Code::Blocks or even Visual Studio, output to the compiler.
Edit: added the directions needed by beginners. Since, you know how to use compiler you most likely do not need them. But, beginners do read these threads.
http://msdn.microsoft.com/en-us/library/ms235639(VS.80).aspx
Tim S
-
What you mean,saying "if you can see any difference in the commands" ?
What difference?
I use VC6 compiler in CB and in MS VC6.
And in both cases compiler say that all is ok and give me my dll. But after compiling the dll in vc6 working.If compiling in BC - no :(
Yeah, you might actually want to follow my directions in the link I posted to turn on "FULL COMPILER LOGGING".
Tim S
-
stahta01
I solved the problem by full copying all arguments of compiler and linker from VC++6 to Code::Blocks.
Just,usually I don't use compiler and linker in command line,usually I use all by defaults.
I use compiler and linker a couple of times,with creating exe-file size of 800 bytes :)
Thank you for your patience :D