Click here to Skip to main content
16,004,887 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: command prompt Pin
Snyp10-Dec-03 12:33
Snyp10-Dec-03 12:33 
GeneralRe: command prompt Pin
Gary R. Wheeler10-Dec-03 15:07
Gary R. Wheeler10-Dec-03 15:07 
GeneralRe: command prompt Pin
Fareed Rizkalla10-Dec-03 18:57
Fareed Rizkalla10-Dec-03 18:57 
GeneralRe: command prompt Pin
Jon Sagara10-Dec-03 21:20
Jon Sagara10-Dec-03 21:20 
Generallink error on .def files Pin
Anonymous10-Dec-03 10:24
Anonymous10-Dec-03 10:24 
GeneralRe: link error on .def files Pin
David Crow10-Dec-03 10:33
David Crow10-Dec-03 10:33 
GeneralRe: link error on .def files Pin
Jörgen Sigvardsson10-Dec-03 11:19
Jörgen Sigvardsson10-Dec-03 11:19 
GeneralMake file Pin
Anonymous10-Dec-03 10:15
Anonymous10-Dec-03 10:15 
Hi,

I'm trying trying to re-compile some source code. The code was written in VC++. However, the writer only included the .h, .c, and a file called makefile. Hence, I'm having trouble re-compiling becuase I don't know the proper settings for the project. I get a lot of LNK2001 errors. I went through the "makefile" and it looks more like the type used on UNIX. Could someone tell me what it is? It's NOT a .mak file. Can I use it to set my project settings?

# Nmake macros for building Windows 32-Bit apps
!include <ntwin32.mak>

# If the rpc include directory is not included in the standard path
# you have to give the path to it here.
RPCINCLUDEPATH = ..

# If the rpc library is not included in the standard lib path
# you have to give the path to it here.
RPCLIBPATH = ..\bin\\

DEFINITION = ONCRPC.DEF

OBJS = CLNT_RAW.OBJ \
XDR.OBJ \
CLNT_TCP.OBJ \
CLNT_UDP.OBJ \
PMAP_RMT.OBJ \
RPC_PROT.OBJ \
SVC_AUTU.OBJ \
SVC_AUTH.OBJ \
SVC_RAW.OBJ \
SVC_RUN.OBJ \
SVC_TCP.OBJ \
SVC_UDP.OBJ \
XDR_MEM.OBJ \
XDR_REC.OBJ \
AUTH_NON.OBJ \
AUTH_UNI.OBJ \
AUTHUNIX.OBJ \
BINDRESV.OBJ \
CLNT_GEN.OBJ \
CLNT_PER.OBJ \
CLNT_SIM.OBJ \
GET_MYAD.OBJ \
GETRPCEN.OBJ \
GETRPCPO.OBJ \
PMAP_CLN.OBJ \
PMAP_GET.OBJ \
PMAP_GMA.OBJ \
PMAP_PRO.OBJ \
PMAP_PR.OBJ \
RPC_CALL.OBJ \
RPC_COMM.OBJ \
SVC_SIMP.OBJ \
XDR_ARRA.OBJ \
XDR_FLOA.OBJ \
XDR_REFE.OBJ \
XDR_STDI.OBJ \
SVC.OBJ \
BCOPY.OBJ \
NT.OBJ

all: oncrpc.dll portmap.exe

clean:
del $(OBJS) oncrpc.lib oncrpc.dll oncrpc.exp portmap.obj portmap.exe ..\rpcgen\oncrpc.dll

portmap.exe: oncrpc.lib portmap.obj
$(link) $(conlflags) $(ldebug) -out:portmap.exe PORTMAP.obj $(RPCLIBPATH)oncrpc.lib $(conlibsdll) wsock32.lib
copy portmap.exe ..\bin\pm_ascii.exe

oncrpc.lib: $(OBJS) oncrpc.def
$(implib) /out:oncrpc.lib /def:$(DEFINITION) $(OBJS)

oncrpc.dll: $(OBJS) oncrpc.lib oncrpc.exp
$(link) /DLL /out:oncrpc.dll -entry:_DllMainCRTStartup$(DLLENTRY) $(ldebug) oncrpc.exp $(OBJS) $(conlibsdll) wsock32.lib advapi32.lib
copy oncrpc.lib ..\bin
copy oncrpc.dll ..\bin
copy oncrpc.dll ..\rpcgen

.c.obj:
$(cc) /I$(RPCINCLUDEPATH) /DONCRPCDLL $(cdebug) $(cflags) $(cvarsdll) $*.c
GeneralRe: Make file Pin
David Crow10-Dec-03 10:27
David Crow10-Dec-03 10:27 
Generalinconsistent dll linkage dllexport assumed Pin
Anonymous10-Dec-03 7:37
Anonymous10-Dec-03 7:37 
GeneralRe: inconsistent dll linkage dllexport assumed Pin
David Crow10-Dec-03 7:49
David Crow10-Dec-03 7:49 
GeneralRe: inconsistent dll linkage dllexport assumed Pin
Anonymous10-Dec-03 7:58
Anonymous10-Dec-03 7:58 
General.def files Pin
Anonymous10-Dec-03 7:23
Anonymous10-Dec-03 7:23 
GeneralRe: .def files Pin
David Crow10-Dec-03 7:45
David Crow10-Dec-03 7:45 
GeneralRe: .def files Pin
Anonymous10-Dec-03 8:01
Anonymous10-Dec-03 8:01 
GeneralRe: .def files Pin
David Crow10-Dec-03 8:12
David Crow10-Dec-03 8:12 
GeneralPointer to another Window Pin
tjkrz10-Dec-03 7:00
tjkrz10-Dec-03 7:00 
GeneralRe: Pointer to another Window Pin
Antti Keskinen10-Dec-03 7:46
Antti Keskinen10-Dec-03 7:46 
GeneralRe: Pointer to another Window Pin
tjkrz10-Dec-03 8:44
tjkrz10-Dec-03 8:44 
GeneralRe: Pointer to another Window Pin
Antti Keskinen11-Dec-03 7:10
Antti Keskinen11-Dec-03 7:10 
GeneralRe: Pointer to another Window Pin
David Crow10-Dec-03 7:47
David Crow10-Dec-03 7:47 
GeneralRe: Pointer to another Window Pin
Joel Lucsy11-Dec-03 4:08
Joel Lucsy11-Dec-03 4:08 
GeneralRe: Pointer to another Window Pin
tjkrz15-Dec-03 9:21
tjkrz15-Dec-03 9:21 
Generaltemplate design question Pin
pankajdaga10-Dec-03 6:30
pankajdaga10-Dec-03 6:30 
GeneralRe: template design question Pin
Jörgen Sigvardsson10-Dec-03 11:34
Jörgen Sigvardsson10-Dec-03 11:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.