It is currently Sun Dec 16, 2018 4:40 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 37 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject:
PostPosted: Tue Jun 24, 2008 9:24 pm 
Offline
Addict
Addict

Joined: Tue May 06, 2003 5:07 pm
Posts: 2422
Location: UK
milan1612 wrote:
OK, downloaded and replaced the new polink.exe, but the error persists :?
Same here :cry:


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Jun 24, 2008 9:32 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10456
Location: Beyond the pale...
Yes, the lib contains one external function exported as '_get', but the linker complains about a corrupted library. Has Polink caught up with VC 2008 yet?

Fred, do you use VC 2005 or VC 2008 for PB's userlibs?

_________________
I may look like a mule, but I'm not a complete ass.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Jun 24, 2008 9:34 pm 
Offline
Addict
Addict

Joined: Tue May 06, 2003 5:07 pm
Posts: 2422
Location: UK
srod wrote:
Yes, the lib contains one external function exported as '_get', but the linker complains about a corrupted library. Has Polink caught up with VC 2008 yet?

Fred, do you use VC 2005 or VC 2008 for PB's userlibs?
Well anyway I'm using the 2005 version and it does not work :(
Maybe a free VC++6 version exist, like for the 2005 one ?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Jun 24, 2008 10:03 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Apr 05, 2007 12:15 am
Posts: 894
Location: Nuremberg, Germany
Srod and I just discovered that the static library produced by the MingW compiler (free)
works like a charm (it outputs an .a file, just rename it to .lib).

Polink seems to have a problem with libraries compiled with VC++, not even
DLLs work in combination with Purebasic. Anyway, it could be that I just overlooked
a certain compiler option that causes these problems...

MingW can be found here: Sourceforge

_________________
Windows 7 & PureBasic 4.4


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Jun 24, 2008 10:14 pm 
Offline
Always Here
Always Here
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 5746
Location: Berlin - Germany
Have you test with Polink 5.0 ? ( http://www.smorgasbordet.com/pellesc/ )

PB have Polink 4.0 in the compiler directory

_________________
PureBasic 5.70 | SpiderBasic 2.10 | Windows 10 Pro (x64) | Linux Mint 19.0 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Jun 24, 2008 10:17 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Apr 05, 2007 12:15 am
Posts: 894
Location: Nuremberg, Germany
@Thomas: Go to the first page of this thread :wink:

_________________
Windows 7 & PureBasic 4.4


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Jun 24, 2008 10:19 pm 
Offline
Always Here
Always Here
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 5746
Location: Berlin - Germany
milan1612 wrote:
@Thomas: Go to the first page of this thread :wink:
I have overlooked this :wink:

_________________
PureBasic 5.70 | SpiderBasic 2.10 | Windows 10 Pro (x64) | Linux Mint 19.0 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Jun 24, 2008 10:24 pm 
Offline
Addict
Addict

Joined: Tue May 06, 2003 5:07 pm
Posts: 2422
Location: UK
Well, using Mingw/Devc++ isn't a solution for me as my code doesn't compile with gcc... :cry:


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Jun 24, 2008 10:55 pm 
Offline
Addict
Addict

Joined: Tue May 06, 2003 5:07 pm
Posts: 2422
Location: UK
In fact I managed to compile it thought PB's linker gives me 18 unresolved external symbols !

things like "ZNKSs4sizeEv" :shock: :?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Jun 24, 2008 11:56 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13436
Location: France
We use VC++2005 (Express version) for all the libraries so it shouldn't be a problem. "ZNKSs4sizeEv" looks like a C++ mangled symbol, you probably have a C++ lib dependencie (MSVCP80 or such ?).


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jun 25, 2008 12:04 am 
Offline
Addict
Addict

Joined: Tue May 06, 2003 5:07 pm
Posts: 2422
Location: UK
Fred wrote:
We use VC++2005 (Express version) for all the libraries so it shouldn't be a problem. "ZNKSs4sizeEv" looks like a C++ mangled symbol, you probably have a C++ lib dependencie (MSVCP80 or such ?).
Well I have those messages only with Dev Cpp, with VC++ 2005 or higher it just crash the linker (the same code is used) :cry:

Does the VC2005 project i send on the 1st page work for you ?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jun 25, 2008 12:58 am 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13436
Location: France
To have it to work, you have to set the whole program optimization (in General) to "No Whole Program Optimization", as polink doesn't support such.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jun 25, 2008 9:55 am 
Offline
Addict
Addict

Joined: Tue May 06, 2003 5:07 pm
Posts: 2422
Location: UK
Fred wrote:
To have it to work, you have to set the whole program optimization (in General) to "No Whole Program Optimization", as polink doesn't support such.
Yes it seems that was the trick :) !
Thanks Fred !!


Though now with my real code, I've got 13 unresolved externals, most of these contains "std" :oops:
Is there another configuration to do ?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jun 25, 2008 10:56 am 
Offline
Addict
Addict

Joined: Tue May 06, 2003 5:07 pm
Posts: 2422
Location: UK
Polo wrote:
Though now with my real code, I've got 13 unresolved externals, most of these contains "std" :oops:
Is there another configuration to do ?
If I had "msvcrt.lib" in my own lib, and use "dynamic link with ATL", only 2 errors remain !

"unresolved XRan@_StringBase@std@@SAXXZ"
"unresolved XLen..."


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jun 25, 2008 12:14 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13436
Location: France
I don't know these symbols, sorry.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 37 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye