User Forum    :: Powered by YaBB
  « MIDI-OX User Forum - Adding Debug option to make file »
Welcome, Guest. Please Login or Register.
May 7th, 2025, 2:57am


Home Home Help Help Search Search Members Members Login Login Register Register


   MIDI-OX User Forum
   General
   General Board
(Moderator: admin)
   Adding Debug option to make file
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   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 Quote Modify 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 /entryCheesyllMain 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 /entryCheesyllMain 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
*****






   
WWW Email

Gender: male
Posts: 2027
Re: Adding Debug option to make file
« Reply #1 on: Jun 24th, 2004, 12:56pm »
Quote Quote Modify 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.

Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »


MIDI-OX User Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.