Page 1 of 1

Compiler : Ignore unresolved external links

Posted: Mon Oct 08, 2007 11:05 am
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

Re: Compiler : Ignore unresolved external links

Posted: Mon Oct 08, 2007 11:33 am
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?

Posted: Mon Oct 08, 2007 10:18 pm
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=

Posted: Mon Oct 08, 2007 10:31 pm
by Trond
Those are used. :roll:

Posted: Mon Oct 08, 2007 10:45 pm
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

Posted: Mon Oct 08, 2007 10:53 pm
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.

Posted: Mon Oct 08, 2007 11:30 pm
by freddix
I tried to IMPORT the lib: libcp.lib that, in the MS forums and others forums should contain these functions... without success...

Posted: Mon Oct 08, 2007 11:43 pm
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.

Posted: Mon Oct 08, 2007 11:49 pm
by freddix
where does the PellesC forum is ?
never heard of it before.

Posted: Mon Oct 08, 2007 11:55 pm
by jack

Posted: Mon Oct 08, 2007 11:56 pm
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" { .... }

Posted: Tue Oct 09, 2007 12:16 am
by freddix
I tried many version of the .lib file without success.