LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Not getting link (https://www.linuxquestions.org/questions/programming-9/not-getting-link-634081/)

answerme 04-08-2008 11:46 PM

Not getting link
 
Hye All
Iam not able to link my main makefile with sysmacro.mak. Well that makefile supports to windows(NMAKE) but i have to work on UNIX

Code:

SYSMACRO = $(RTXCROOT)/Include/sysmacro.mak

where RTXCROOT =.    //(what is . represents)

When iam compiling the main makefile ,iam getting error

Code:

Include/sysmacro.mak:199: *** extraneous `else'. Stop.
Code:

RTXCGEN = cclock.o cmbox.o cpart.o cqueue.o cres.o csema.o ctask.o config.o filecb.o
else  //line number 199
RTXCGEN = cclock.o cmbox.o cpart.o cqueue.o cres.o csema.o ctask.o \
                filecb.o

Kinldy give your valuable suggestion ,will be a gr8 help

TB0ne 04-14-2008 03:41 PM

Quote:

Originally Posted by answerme (Post 3115384)

Code:

Include/sysmacro.mak:199: *** extraneous `else'. Stop.

You apparently have an error at line 199, in the sysmacro.mak file, as indicated by the error you reported. Have you checked that file?

paulsm4 04-14-2008 04:13 PM

Microsoft "NMake" isn't "make".

You've got a couple of choices:

a) Hack your Microsoft "makefile" down to standard "make" syntax
<= This is both the cheapest and easiest alternative ... but you *will* have to learn a bit about "make" syntax

b) Learn the equivalent constructs in Gnu make

... or ...

c) Buy a third-party package that supports Microsoft "NMake" syntax on *nix: Opus Make:

http://www.opussoftware.com


All times are GMT -5. The time now is 08:23 PM.