Compiler : Ignore unresolved external links

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
freddix
Enthusiast
Enthusiast
Posts: 100
Joined: Sun Feb 08, 2004 7:22 pm
Location: South France
Contact:

Compiler : Ignore unresolved external links

Post by freddix »

Hi,

Should it be possible to have an option to make compiler ignore unresolved external links and simply report them as "warning" ?

It's an important thing when you use .lib file that can use other external .lib file...

Regards,
Fred
Odyssey-Creators
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Re: Compiler : Ignore unresolved external links

Post by inc. »

freddix wrote:Hi,

Should it be possible to have an option to make compiler ignore unresolved external links and simply report them as "warning" ?

It's an important thing when you use .lib file that can use other external .lib file...

Regards,
Fred
Odyssey-Creators
In regular, the linker tries to embedd symbols wich are really needed cause they are called within the binary.
So in your case of request a nonfunctional appl. would be the result -> so whats your purpose?
Check out OOP support for PB here!
freddix
Enthusiast
Enthusiast
Posts: 100
Joined: Sun Feb 08, 2004 7:22 pm
Location: South France
Contact:

Post by freddix »

in my case, the compiler try to resolve an external link that is defined but not used.

link to here to understand :
http://www.purebasic.fr/english/viewtop ... highlight=
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Those are used. :roll:
freddix
Enthusiast
Enthusiast
Posts: 100
Joined: Sun Feb 08, 2004 7:22 pm
Location: South France
Contact:

Post by freddix »

If they are used, in which .lib ?
I have tried all solutions available over the internet without success.

DevC++, Visual studio, all have options to IGNORE unresolved external links ... it does not prevent compiled programs from running !!!
So, why shouldn't it be possible for PureBASIC ?

Regards,
Fred
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

I have tried all solutions available over the internet without success.
Have you tried to link with the library that exports these functions?

Dev-C++ doesn't have such option, by the way.
freddix
Enthusiast
Enthusiast
Posts: 100
Joined: Sun Feb 08, 2004 7:22 pm
Location: South France
Contact:

Post by freddix »

I tried to IMPORT the lib: libcp.lib that, in the MS forums and others forums should contain these functions... without success...
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Post by jack »

have you posted your problem at the PellesC forum?
those unresolved symbols look like C++ and I am not sure PellesC can work with them.
freddix
Enthusiast
Enthusiast
Posts: 100
Joined: Sun Feb 08, 2004 7:22 pm
Location: South France
Contact:

Post by freddix »

where does the PellesC forum is ?
never heard of it before.
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Post by jack »

inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

Maybe there are diff. revisions of libcp.lib avail. in the www and you do need a specific revision?!

Or they do need the Cdecl calling convention or even aren't exported by using Export "C" { .... }
Check out OOP support for PB here!
freddix
Enthusiast
Enthusiast
Posts: 100
Joined: Sun Feb 08, 2004 7:22 pm
Location: South France
Contact:

Post by freddix »

I tried many version of the .lib file without success.
Post Reply