Author Topic: Problem with dll compiling  (Read 6053 times)

Offline _Ray_

  • Single posting newcomer
  • *
  • Posts: 7
Problem with dll compiling
« 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?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Problem with dll compiling
« Reply #1 on: January 14, 2009, 03:07:27 pm »
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline _Ray_

  • Single posting newcomer
  • *
  • Posts: 7
Re: Problem with dll compiling
« Reply #2 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  :(

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Problem with dll compiling
« Reply #3 on: January 14, 2009, 03:42:56 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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline _Ray_

  • Single posting newcomer
  • *
  • Posts: 7
Re: Problem with dll compiling
« Reply #4 on: January 14, 2009, 03:54:08 pm »
I know,how to use compiler  :x
Thank...

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Problem with dll compiling
« Reply #5 on: January 14, 2009, 05:40:31 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
« Last Edit: January 14, 2009, 05:48:27 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Problem with dll compiling
« Reply #6 on: January 14, 2009, 05:45:33 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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline _Ray_

  • Single posting newcomer
  • *
  • Posts: 7
Re: Problem with dll compiling
« Reply #7 on: January 15, 2009, 08:37:12 am »
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