News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Problem with dll compiling

Started by _Ray_, January 14, 2009, 09:11:23 AM

Previous topic - Next topic

_Ray_

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?

stahta01

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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

_Ray_

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  :(

stahta01

Quote from: _Ray_ on January 14, 2009, 03:36:47 PM
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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

_Ray_

I know,how to use compiler  :x
Thank...

stahta01

#5
Quote from: _Ray_ on January 14, 2009, 03:54:08 PM
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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

Quote from: _Ray_ on January 14, 2009, 03:36:47 PM
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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

_Ray_

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