Author |
Topic: Adding Debug option to make file (Read 1821 times) |
|
t_me
New Member

 MIDI-OX Rules!
Posts: 1
|
 |
Adding Debug option to make file
« on: Jun 24th, 2004, 5:16am » |
Quote Modify
|
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 llMain 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 llMain 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
|
|
IP Logged |
|
|
|
Jamie OConnell
Administrator
    


Gender: 
Posts: 2027
|
 |
Re: Adding Debug option to make file
« Reply #1 on: Jun 24th, 2004, 12:56pm » |
Quote Modify
|
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.
|
« Last Edit: Jun 24th, 2004, 12:56pm by Jamie OConnell » |
IP Logged |
--Jamie Music is its own reward.
|
|
|
|