Javascript example doesn't work.

New to FreeBASIC? Post your questions here.
Post Reply
nobozoz
Posts: 238
Joined: Nov 17, 2005 6:24
Location: Chino Hills, CA, USA

Javascript example doesn't work.

Post by nobozoz »

I have fb24 on WINXP.
When I try to compile the Javascript example: G:\fb.24\examples\other-languages\JavaScript\SpiderMonkey\callbacks.bas,
I get: G:\fb.24\bin\win32\ld.exe: cannot find -ljs

How do I get this example to compile correctly?
TJF
Posts: 3809
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: Javascript example doesn't work.

Post by TJF »

It compiles correctly. But then, the linker needs the import library libjs.dll.a. Install it.
nobozoz
Posts: 238
Joined: Nov 17, 2005 6:24
Location: Chino Hills, CA, USA

Re: Javascript example doesn't work.

Post by nobozoz »

Google search was worthless, but I searched my backup files and was able to find a copy dated 2006. Whew!
dodicat
Posts: 7983
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: Javascript example doesn't work.

Post by dodicat »

I had to get js32.dll
http://www.dlldump.com/download-dll-fil ... nload.html

Then grab libjs.dll.a from freebasic 18.5 to get it running.
Post Reply