[PD] OSC make or make OSC
Martin Peach
martinrp at vax2.concordia.ca
Wed May 19 21:11:53 CEST 2004
nomeparece at gmx.net wrote:
> On Wed, 2004-05-19 at 14:25, <martinrp at 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
More information about the Pd-list
mailing list