New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

openmotif version?


Post Reply New Thread Subscribe

 
Thread Tools
bettertony

 
Member Since: Aug 25, 2010
Posts: 2
bettertony is on a distinguished road

bettertony is offline
Hi everyone,

I am new to program compiling. My small code need to be compiled with openmotif or lesstif which has Xm lib. Below is the make file.
PHP Code:
XLIBS = -L/opt/local/var/macports/software/openmotif/2.3.2_2/opt/local/lib  -L/usr/X11R6/lib -lXm -lXt -lX11
#XLIBS = -L/plat/i686/LessTif/Motif2.0/lib  -L/usr/X11R6/lib -lXm -lXt -lX11
#XLIBS = -L/usr/X11R6/lib -L/usr/X11R6/lib64 -lXm -lXt -lX11
#XLIBS = -L/usr/X11R6/LessTif/Motif1.2/lib  -L/usr/X11R6/lib -lXm -lXt -lX11
XINCS =  -I/opt/local/var/macports/software/openmotif/2.3.2_2/opt/local/include -I/usr/X11R6/include
#XINCS =  -I/plat/i686/LessTif/Motif2.0/include -I/usr/X11R6/include
#XINCS = -I/usr/X11R6/LessTif/Motif1.2/include -I/usr/X11R6/include
#XINCS = -I/usr/X11R6/include


OBJS  CDispRG.o disrg.o XInfo.o CDisp.o CGetData.o bytescale.o
OBJS1 
dismag.o XInfo.o CDisp.o CGetData.o CDispMag.o bytescale.o
OBJS2 
disbyte.o XInfo.o CDisp.o CGetData.o CDispMag.o bytescale.o
OBJS3 
dismph.o XInfo.o CDisp.o CGetData.o CDispComp.o bytescale.o
OBJS4 
dishgt.o XInfo.o CDisp.o CGetData.o CDispHgt.o bytescale.o
OBJS5 
stats.o  CGetData.o CStats.o bytescale.o
OBJS6 
disany.o bytescale.o CStats.o XInfo.o CDisp.o CGetData.o CDispMag.o
OBJS7 
disany_mnx.o bytescale.o XInfo.o CDisp.o CGetData.o CDispMag.o
OBJS8 
dishgtfile.o XInfo.o CDisp.o CGetData.o CDispHgt.o bytescale.o
OBJS9 
dismphfile.o XInfo.o CDisp.o CGetData.o CDispComp.o bytescale.o

CC 
g++ -O3 -Wall
#CC = g++ -Wall -g

all dishgt disrg dismph dismag disbyte disany disany_mnx dismphfile dishgtfile
#all : stats dishgt disrg dismph dismag disbyte disany disany_mnx

clean :
    
rm -*.o
    rm 
-f dishgt disrg dismph dismag disbyte disany disany_mnx dismphfile dishgtfile

install 
:
    
mv dishgt $(INT_BIN)
    
mv dismph $(INT_BIN)
    
mv dismag $(INT_BIN)
    
mv disbyte $(INT_BIN)
    
mv disrg  $(INT_BIN)
    
mv disany $(INT_BIN)
    
mv disany_mnx $(INT_BIN)
    
mv dismphfile $(INT_BIN)
    
mv dishgtfile $(INT_BIN)
#   mv stats  $(INT_BIN)

dishgt : ${OBJS4}
    ${
CC} ${OBJS4}  -o dishgt ${XLIBS}
dishgtfile : ${OBJS8}
    ${
CC} ${OBJS8}  -o dishgtfile ${XLIBS}

disrg : ${OBJS}
    ${
CC} ${OBJS}  -o disrg ${XLIBS}

dismph : ${OBJS3}
    ${
CC} ${OBJS3}  -o dismph ${XLIBS}

dismphfile : ${OBJS9}
    ${
CC} ${OBJS9}  -o dismphfile ${XLIBS}

dismag : ${OBJS1}
    ${
CC} ${OBJS1}  -o dismag ${XLIBS}

disbyte : ${OBJS2}
    ${
CC} ${OBJS2}  -o disbyte ${XLIBS}

disany : ${OBJS6}
    ${
CC} ${OBJS6}  -o disany ${XLIBS}

disany_mnx : ${OBJS7}
    ${
CC} ${OBJS7}  -o disany_mnx ${XLIBS}

stats : ${OBJS5}
    ${
CC} ${OBJS5}  -o stats ${XLIBS}


.
cpp.o:
     ${
CC} -${XINCS} $*.cpp 
compile seems to be successful and I didn't find any error. But when I come to use the binary command it return the error like:
"Error: Unresolved inheritance operation"

Does it make sense to anybody? If it is a problem with openmotif? Coz I didn't find too much process in Makefile.
QUOTE Thanks

Post Reply New Thread Subscribe


« Making a Shell Script Executable | new to programing »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Installer doesn't let me install a previous version of a program stinktank OS X - Apps and Games 7 12-27-2011 04:43 PM
How long did it take you to receive your iPad 3g or iPad wifi version? plmiller0905 iPad Hardware and Accessories 33 05-15-2010 05:20 AM
How to download older version of Java for mac aarthi Switcher Hangout 3 05-11-2010 05:32 PM
micrsoft office test drive and proper version sik OS X - Apps and Games 6 12-04-2007 12:39 AM
how to turn iPhoto back to older version? trinity_gal Images, Graphic Design, and Digital Photography 2 11-10-2006 10:47 AM

All times are GMT -4. The time now is 10:21 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?