Linking Problem

General FreeBASIC programming questions.
Post Reply
vdecampo
Posts: 2992
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Linking Problem

Post by vdecampo »

Ok guys. I know its been a while since I did any serious programming in FB but I am stumped and I need your help. Below is a download link to a project I am doing. I am converting some C code into a static FB library. The first project (FSUIPC_FB) is the actual library. Then there is a sub-project called (FSUIPC_Test). My problem is I cannot get the test project to link with the library. The linker keeps saying it cannot find the library libFSUIPC_FB. I have either lost my mind or I have forgotten something fundamental that has just got me perplexed.

If anyone could see why the test project is not finding the library I would greatly appreciate it. I am using FreeBASIC 1.05 and FBEdit 1.0.6.8 on Windows 10-64 bit.

Thanks
-Vince

Download Link
dkl
Site Admin
Posts: 3235
Joined: Jul 28, 2005 14:45
Location: Germany

Re: Linking Problem

Post by dkl »

Try removing the "lib" prefix from the #inclib; it will be added automatically, like the .a file extension.

Code: Select all

#Inclib "FSUIPC_FB"
vdecampo
Posts: 2992
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Re: Linking Problem

Post by vdecampo »

You see. I must have been brain-dead.

Thanks dkl
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: Linking Problem

Post by MrSwiss »

[a bit off-topic]
vdecampo wrote:I am using FreeBASIC 1.05 and FBEdit 1.0.6.8 on Windows 10-64 bit.
About FBEdit:
the version you're using now, still has some *instability* issues.
You'd better upgrade to version: 1.0.7.6c, the latest version from KetilO.

You can get it from: freebasic-portal.de (the german language FB community).
[/a bit off-topic]
vdecampo
Posts: 2992
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Re: Linking Problem

Post by vdecampo »

MrSwiss wrote:[a bit off-topic]
vdecampo wrote:I am using FreeBASIC 1.05 and FBEdit 1.0.6.8 on Windows 10-64 bit.
About FBEdit:
the version you're using now, still has some *instability* issues.
You'd better upgrade to version: 1.0.7.6c, the latest version from KetilO.

You can get it from: freebasic-portal.de (the german language FB community).
[/a bit off-topic]
Thanks!
Post Reply