|
||
Title: Adding Debug option to make file Post by t_me on Jun 24th, 2004, 5:16am Hi; I have this makefile for a Windows platform. Currently the main line for compiling and linking this .dll is as follows: IT_example.dll: example1.obj example2.obj example3.obj link /dll /out:IT_example.dll /def:example.def /entry:DllMain example.obj example.obj example.obj kernel32.lib rpcndr.lib rpcns4.lib rpcrt4.lib oleaut32.lib uuid.lib .c.obj: cl /c /Ox /MD /DWIN32 /D_WIN32_WINNT=0x0400 /DREGISTER_PROXY_DLL $< ------------------------------------------------------ Now to add debug option to this i did the following: IT_example.dll: example1.obj example2.obj example3.obj link /dll /out:example.dll /def:example.def /entry:DllMain example1.obj example.obj IT_example.obj kernel32.lib rpcndr.lib rpcns4.lib rpcrt4.lib oleaut32.lib uuid.lib /debug .c.obj: cl /c /W3 /ZI /Od /MD /DWIN32 /D "_DEBUG" /D_WIN32_WINNT=0x0400 /DREGISTER_PROXY_DLL $< ------------------------------------------------------- But i dont think this is correct, can anyone let us know and if not what would be the solution, keeping to the similar style that is above. Don't worry about the name of the files(example.** etc) Many Thanks Ter |
||
Title: Re: Adding Debug option to make file Post by Jamie OConnell on Jun 24th, 2004, 12:56pm You shouldn't have to do anything fancy to the Link step (remove the /Debug spec.). The compiler instructions: /D"_DEBUG", /Od and /Zi should be sufficient. |
||
MIDI-OX User Forum » Powered by YaBB 1 Gold - SP 1.3.1! YaBB © 2000-2003. All Rights Reserved. |