On Wed, 2004-05-19 at 14:25, martinrp@vax2.concordia.ca Subject: Re: [PD] OSC make or make OSC same error:
...what error is it?
here:
make OSC
gcc OSC.o -o OSC
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../crt1.o(.text+0x18): In function _start': : undefined reference to
main'
OSC.o(.text+0x17): In function OSC_new': : undefined reference to
pd_new'
OSC.o(.text+0x38): In function OSC_version': : undefined reference to
post'
OSC.o(.text+0x6b): In function OSC_setup': : undefined reference to
gensym'
OSC.o(.text+0x73): In function OSC_setup': : undefined reference to
class_new'
OSC.o(.text+0x91): In function OSC_setup': : undefined reference to
gensym'
OSC.o(.text+0xa6): In function OSC_setup': : undefined reference to
class_addmethod'
OSC.o(.text+0xae): In function OSC_setup': : undefined reference to
sendOSC_setup'
OSC.o(.text+0xb3): In function OSC_setup': : undefined reference to
dumpOSC_setup'
OSC.o(.text+0xb8): In function OSC_setup': : undefined reference to
OSCroute_setup'
OSC.o(.text+0xc7): In function OSC_setup': : undefined reference to
post'
OSC.o(.text+0xd5): In function OSC_setup': : undefined reference to
post'
OSC.o(.text+0xe3): In function OSC_setup': : undefined reference to
post'
collect2: ld returned 1 exit status
make: *** [OSC] Error 1
any idea? danke, /a
nomeparece@gmx.net wrote:
On Wed, 2004-05-19 at 14:25, martinrp@vax2.concordia.ca Subject: Re: [PD] OSC make or make OSC same error:
...what error is it?
here:
make OSC gcc OSC.o -o OSC /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../crt1.o(.text+0x18): In function
_start': : undefined reference to
main'
Here it's looking for main, which it shouldn't be doing because you are building a shared library with no function named main in it. Did you set the current make target to be pd_linux? The first line of the makefile I used is: current: pd_linux ...otherwise it may be trying to build an OSX version. The linux part of the makefile I used has: # ----------------------- LINUX i386 -----------------------
pd_linux: $(NAME).pd_linux
SFX=pd_linux
.SUFFIXES: .$(SFX)
LINUXCFLAGS = -DPD -DUNIX -O2 -funroll-loops -fomit-frame-pointer
-Wall -W -Wshadow
-Wno-unused -Wno-parentheses -Wno-switch
# where is your m_pd.h ??? LINUXINCLUDE = -I../../build/include
LINUXEXTERNALS = htmsocket.o OSC-pattern-match.o sendOSC.o dumpOSC.o routeOSC.o
.c.pd_linux: cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c *.c ld -export_dynamic -shared -o $*.pd_linux $*.o $(LINUXEXTERNALS) $(LIBS) $(LIBOSC) strip --strip-unneeded $*.pd_linux
# ----------------------------------------------------------
...notice the -export_dynamic and -shared flags. ...but maybe you have something else? Martin