Subj : Re: Linking problems To : Brendan Eich From : Jeremy Gillick Date : Wed Jul 20 2005 04:43 pm This is a multi-part message in MIME format. --------------080102020104040107070301 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To compile the program I'm just doing cc simple.c Brendan Eich wrote: > Jeremy Gillick wrote: > >> When I try to compile a simple demo program (see attached) on my >> apple powerbook, I get the following error: >> >> ld: Undefined symbols: >> _JS_Init >> _JS_InitStandardClasses >> _JS_NewContext >> _JS_NewObject > > > > You are not telling the linker to use the library that contains these > functions. What command line do you use to link your simple program, > anyway? > > /be --------------080102020104040107070301 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
To compile the program I'm just doing cc simple.cJeremy Gillick wrote:--------------080102020104040107070301-- .
When I try to compile a simple demo program (see attached) on my apple powerbook, I get the following error:
ld: Undefined symbols:
_JS_Init
_JS_InitStandardClasses
_JS_NewContext
_JS_NewObject
You are not telling the linker to use the library that contains these functions. What command line do you use to link your simple program, anyway?
/be