lsupcxx problem

DOS specific questions.
Post Reply
Sebastian
Posts: 131
Joined: Jun 18, 2005 14:01
Location: Europe / Germany
Contact:

lsupcxx problem

Post by Sebastian »

Hi,

I wanted to try FBDOS and so I got FB 0.16s first, after that installed the latest Testing Release and finally I got the daily DOS CVS build but I can't even compile a hello world program with it. I always get this error message:

Code: Select all

E:\fbdos>fbc hello.bas
e:/fbdos\bin\dos\ld.exe: cannot find -lsupcxx
What's lsupcxx?!

So I installed FBDOS 0.16 stable again, installed 0.17 Testing and it works. So there must be a problem with the CVS build. :-?

Sebastian
DrV
Site Admin
Posts: 2116
Joined: May 27, 2005 18:39
Location: Midwestern USA
Contact:

Post by DrV »

In addition to the CVS build itself, you also need to download the library updates from the same page (http://drv.nu/freebasic/cvs/lib-updates.zip) - unzip it in the root of your FreeBASIC directory. I have been meaning to update that page to add some more explicit instructions... :)
Sebastian
Posts: 131
Joined: Jun 18, 2005 14:01
Location: Europe / Germany
Contact:

Post by Sebastian »

DrV wrote:In addition to the CVS build itself, you also need to download the library updates from the same page (http://drv.nu/freebasic/cvs/lib-updates.zip) - unzip it in the root of your FreeBASIC directory.
OK, now I did so but that doesn't help. :-/

Code: Select all

e:/fbdos\bin\dos\ld.exe: cannot find -lsupcxx
I found this in gfxlib2.log

Code: Select all

../../libfb_gfx_control.c: In function 'fb_GfxControl_s':
../../libfb_gfx_control.c:60: error: '__fb_gl' undeclared (first use in this function)
../../libfb_gfx_control.c:60: error: (Each undeclared identifier is reported only once
../../libfb_gfx_control.c:60: error: for each function it appears in.)
make.exe: *** [libfb_gfx_control.o] Error 1
Could that be the reason for the error?
I have been meaning to update that page to add some more explicit instructions... :)
Yes, that would be helpful. :)
DrV
Site Admin
Posts: 2116
Joined: May 27, 2005 18:39
Location: Midwestern USA
Contact:

Post by DrV »

The error in the gfxlib log is unrelated; make sure you've got libsupcxx.a in FreeBASIC/lib/dos/ from that lib updates zip. If you're on plain DOS or something similar without long filename support, make sure you extract this with a DOS tool so that a truncated short name is created instead of a Windows-style short name with ~s.

EDIT: I have fixed the gfxlib error, so there should be a libfbgfx.a in the next build (12-28).
DOS386
Posts: 798
Joined: Jul 02, 2005 20:55

-lsupercxxx :-(

Post by DOS386 »

Code: Select all

E:\fbdos>fbc hello.bas
e:/fbdos\bin\dos\ld.exe: cannot find -lsupcxx
The problem unfortunately persists. I works in FreeDOS but does not work
in EDR-DOS. In both cases path does NOT point into anything FB-related.
No DOSLFN present, filename correctly truncated to "LIBSUPCX.A".
DrV
Site Admin
Posts: 2116
Joined: May 27, 2005 18:39
Location: Midwestern USA
Contact:

Post by DrV »

I guess FreeDOS is more lenient about path separators. I've changed EXEPATH to always return paths with backslashes on DOS; perhaps this will fix the problem.
DOS386
Posts: 798
Joined: Jul 02, 2005 20:55

path / file not found bug

Post by DOS386 »

changed EXEPATH to always return paths with backslashes on DOS; perhaps this will fix
Thanks for attempt to fix ... but seems to be a failure: downloaded today's
version, no effect, both EDR-DOS and SHELL related problems persist.
Post Reply