www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - make usage?

reply rjm <rjm_member pathlink.com> writes:
Hello, I can't find a place to get any help with this so i'm asking here, also I
couldn't search this forum, so I couldn't any information on this problem here,
or on groups.google.com

anyways, my problem is such that when i attempt to do a make on the c++ win32
sample GEN32 using DMC, i always get this error:
"Error on line 22: expecting target : dependencies"

I really can't figure out what the problem is, and i don't even know the correct
syntax i should be using, i've tried a lot of variations like
C:\cpp\GEN32>"c:\dm\bin\make" -f makefile
C:\cpp\GEN32>"c:\dm\bin\make" -f gen32.mak
C:\cpp\GEN32>"c:\dm\bin\make" all -f makefile
and so on...

anyone know how to get it working? 
tnx
rjm
Jun 20 2006
next sibling parent chris elliott <biol75 york.ac.uk> writes:
you need a specific makefile for dmc (perhaps called makefile.dmc). 
Inside this there should be commands like

dmc [flags] [output] code.cpp

makefile is probably for gcc/g++ gem.mak for visual C

chris

rjm wrote:
 Hello, I can't find a place to get any help with this so i'm asking here, also
I
 couldn't search this forum, so I couldn't any information on this problem here,
 or on groups.google.com
 
 anyways, my problem is such that when i attempt to do a make on the c++ win32
 sample GEN32 using DMC, i always get this error:
 "Error on line 22: expecting target : dependencies"
 
 I really can't figure out what the problem is, and i don't even know the
correct
 syntax i should be using, i've tried a lot of variations like
 C:\cpp\GEN32>"c:\dm\bin\make" -f makefile
 C:\cpp\GEN32>"c:\dm\bin\make" -f gen32.mak
 C:\cpp\GEN32>"c:\dm\bin\make" all -f makefile
 and so on...
 
 anyone know how to get it working? 
 tnx
 rjm
 
 

Jun 21 2006
prev sibling next sibling parent Scott Michel <scottm aero.org> writes:
rjm wrote:
 Hello, I can't find a place to get any help with this so i'm asking here, also
I
 couldn't search this forum, so I couldn't any information on this problem here,
 or on groups.google.com
 
 anyways, my problem is such that when i attempt to do a make on the c++ win32
 sample GEN32 using DMC, i always get this error:
 "Error on line 22: expecting target : dependencies"

And line 22 of the make file looks like?
Jun 21 2006
prev sibling parent rjm <rjm_member pathlink.com> writes:
well, there's 2 possible files, and somone mentioned that one might be
specialized for dmc so i tried both, the "makefile" without extension, and the
"gen32.mak" both of which come with this sample (it's in the samples folder for
dmc). and "makefile" which also appears to be the default detected, gives me the
line 22 error, and "gen32.mak" gives me a line 5 error. (to use gen32.mak, the
-f switch is required)

both files are in the dmc distribution C:\dm\samples\WIN32\FRMWORK\GEN32

so perhaps the question is if i'm even using the correct sample, all i really
want is a framework for a win32 app. that i can work off of.
(the gen32.mak is attached for reference)
rjm

In article <e79ucf$l92$1 digitaldaemon.com>, rjm says...
Hello, I can't find a place to get any help with this so i'm asking here, also I
couldn't search this forum, so I couldn't any information on this problem here,
or on groups.google.com

anyways, my problem is such that when i attempt to do a make on the c++ win32
sample GEN32 using DMC, i always get this error:
"Error on line 22: expecting target : dependencies"

I really can't figure out what the problem is, and i don't even know the correct
syntax i should be using, i've tried a lot of variations like
C:\cpp\GEN32>"c:\dm\bin\make" -f makefile
C:\cpp\GEN32>"c:\dm\bin\make" -f gen32.mak
C:\cpp\GEN32>"c:\dm\bin\make" all -f makefile
and so on...

anyone know how to get it working? 
tnx
rjm

rjm
Jun 22 2006