Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
more compiling problems "undefined reference to...&quot
#1
I've had a few more problems compiling. It's wasworking fine all day (I've made a lot of progress on my project, woot!), but it suddenly stopped working. I started FBIDE and the window wouldn't come up (it would appear on the taskbar, and I'd click on it to no avail), so I reinstalled it, ran install.bat, and replaced fbc.exe v0.13 with 0.14 (for reasons explained in my other thread).

After doing that a few times, it eventually started up, but produced a slew of errors when I tried to compile the BAS file through FDIDE. I then tried to compile through the command line, and it produced the same errors. I copied the list out of the DOS window and pasted them below; do note, however, that this isn't the entire list as most of it had already scrolled offscreen.

Code:
infantry.o:fake:(.text+0x199e): undefined reference to `fb_GfxScreenInfo@28'
infantry.o:fake:(.text+0x1d12): undefined reference to `fb_StrAllocTempDescF@8'
infantry.o:fake:(.text+0x1eb3): undefined reference to `fb_GfxImageCreate@12'
infantry.o:fake:(.text+0x1f5a): undefined reference to `fb_GfxImageCreate@12'
infantry.o:fake:(.text+0x1f96): undefined reference to `fb_GfxPut@32'
infantry.o:fake:(.text+0x1fad): undefined reference to `fb_GfxImageDestroy@4'
infantry.o:fake:(.text+0x1fde): undefined reference to `fb_GfxImageCreate@12'
infantry.o:fake:(.text+0x2091): undefined reference to `fb_GfxImageCreate@12'
infantry.o:fake:(.text+0x20dd): undefined reference to `fb_GfxPut@32'
infantry.o:fake:(.text+0x2101): undefined reference to `fb_GfxImageDestroy@4'
infantry.o:fake:(.text+0x2132): undefined reference to `fb_GfxImageCreate@12'
infantry.o:fake:(.text+0x21e5): undefined reference to `fb_GfxImageCreate@12'
infantry.o:fake:(.text+0x2233): undefined reference to `fb_GfxPut@32'
infantry.o:fake:(.text+0x2257): undefined reference to `fb_GfxImageDestroy@4'
infantry.o:fake:(.text+0x2288): undefined reference to `fb_GfxImageCreate@12'
infantry.o:fake:(.text+0x233b): undefined reference to `fb_GfxImageCreate@12'
infantry.o:fake:(.text+0x2389): undefined reference to `fb_GfxPut@32'
infantry.o:fake:(.text+0x23ad): undefined reference to `fb_GfxImageDestroy@4'
infantry.o:fake:(.text+0x23e1): undefined reference to `fb_GfxImageCreate@12'
infantry.o:fake:(.text+0x2494): undefined reference to `fb_GfxImageCreate@12'
infantry.o:fake:(.text+0x24e2): undefined reference to `fb_GfxPut@32'
infantry.o:fake:(.text+0x2506): undefined reference to `fb_GfxImageDestroy@4'
infantry.o:fake:(.text+0x2533): undefined reference to `fb_Init@8'

I've been using winME (but have been using it since before I actually installed FB).

Well. I'm going to toss that out there and hope it makes sense to someone...

--j_k
size=9]"To announce that there must be no criticism of the president, or that we are to stand by the president, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public." -- Theodore Roosevelt[/size]
Reply
#2
Umm... Could you post code? Perhaps a solution would be able to be found more quickly...
974277320612072617420666C61696C21 (Hexadecimal for those who don't know)
Reply
#3
Weird, looks like libfb isn't getting linked in.
Reply
#4
I just uploaded the code here:

http://home.comcast.net/~jckut10/infantry.zip

just unzip everything into the freebasic folder.

--j_k

[edit] I do need to add, however, that the problem is something on my end, but not with the code. Even with a file as simple as:

Code:
PRINT "Hello, World!

returns the same types of errors.
size=9]"To announce that there must be no criticism of the president, or that we are to stand by the president, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public." -- Theodore Roosevelt[/size]
Reply
#5
Fixed. Since I was replacing FBC.exe v0.13 with v0.14, I needed to replace three of the libraries that in the lib\ folder with the three that came with the download; specifically

libfb.a
libfbgfx.a
libfbmt.a

I thought I did that before, but apparently not... Thanks for the help, folks. Smile

--j_k
size=9]"To announce that there must be no criticism of the president, or that we are to stand by the president, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public." -- Theodore Roosevelt[/size]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)