Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » library linkages
library linkages [message #55144] Wed, 14 October 2020 05:31 Go to next message
umem is currently offline  umem
Messages: 7
Registered: October 2020
Promising Member
Using U++ how to link to a .lib, .dll in windows?. I was able to link to a windows win32 .dll using loadlibrary. How to link use .lib file?. Any such examples?.

[Updated on: Wed, 14 October 2020 05:31]

Report message to a moderator

Re: library linkages [message #55145 is a reply to message #55144] Wed, 14 October 2020 06:26 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1363
Registered: December 2006
Ultimate Contributor
Take a look at menu Project -> Package Organizer.
You can put .lib files there.


Regards,
Novo
Re: library linkages [message #55164 is a reply to message #55145] Thu, 15 October 2020 05:27 Go to previous messageGo to next message
umem is currently offline  umem
Messages: 7
Registered: October 2020
Promising Member
I am using the windows version. I was getting linkage error using the step you pointed out.
Could anyone explain it step by step how to Link a GUI app to win32 c++ .dll, .lib?. any examples?.
Re: library linkages [message #55172 is a reply to message #55164] Thu, 15 October 2020 17:50 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1363
Registered: December 2006
Ultimate Contributor
A hint: try to search for *.upp files containing string "library(WIN32)".
Examples:
uppsrc/MySql/MySql.upp
uppsrc/PostgreSQL/PostgreSQL.upp
examples/Synth/Synth.upp

Hope this helps.


Regards,
Novo
Re: library linkages [message #55209 is a reply to message #55172] Mon, 19 October 2020 01:30 Go to previous messageGo to next message
umem is currently offline  umem
Messages: 7
Registered: October 2020
Promising Member
still having the same problem on the windows side.
Is there a book or pdf file that I can purchase or download that explains to detail steps on how to do these?.
If one has a small c++ lib+dll and an upp dialog app that calls it, I like to take a look.
Re: library linkages [message #55211 is a reply to message #55209] Mon, 19 October 2020 07:15 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1363
Registered: December 2006
Ultimate Contributor
Another hint: menu Setup -> Be verbose.
You will get complete command line.


Regards,
Novo
Re: library linkages [message #55213 is a reply to message #55211] Mon, 19 October 2020 12:35 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
Wrote this for you:

https://www.ultimatepp.org/app$ide$AddLib_en-us.html

Mirek
Re: library linkages [message #55218 is a reply to message #55213] Tue, 20 October 2020 07:32 Go to previous messageGo to next message
umem is currently offline  umem
Messages: 7
Registered: October 2020
Promising Member
thanks for the link.
I followed the same steps , still the same issue. Used the verbose option. Got the idea and name mangling was the issue. Added extern "C" to the export, import and worked.
BTW, how to go the link you provided from the Tutorials?. I could not find it there.
thanks again.
Re: library linkages [message #55220 is a reply to message #55218] Tue, 20 October 2020 09:14 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
umem wrote on Tue, 20 October 2020 07:32
thanks for the link.
I followed the same steps , still the same issue. Used the verbose option. Got the idea and name mangling was the issue. Added extern "C" to the export, import and worked.


Cool! Moral of the story: Next time if you have the problem, please post more info, like errors you are getting or mabe screenshots or something.

We would tell you about extern "C" several days ago... Smile

Quote:

BTW, how to go the link you provided from the Tutorials?. I could not find it there.
thanks again.


You could not find it before because I have created that info just yesterday, exactly to answer your post... Smile

Mirek
Re: library linkages [message #55243 is a reply to message #55213] Thu, 22 October 2020 16:47 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1077
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

If someone looks after Mirek's article it is now part of TheIDE begginers guide (Adding external library to your project).

Klugier


U++ - one framework to rule them all.

[Updated on: Thu, 22 October 2020 16:47]

Report message to a moderator

Re: library linkages [message #55244 is a reply to message #55243] Thu, 22 October 2020 19:07 Go to previous message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
Klugier wrote on Thu, 22 October 2020 16:47
Hello,

If someone looks after Mirek's article it is now part of TheIDE begginers guide (Adding external library to your project).

Klugier


BTW, do we really need a table of content with single entry?! That's just noise.

Mirek
Previous Topic: UnZip::GetPos() purpose?
Next Topic: plugin/Eigen updated to stable release 3.3.8
Goto Forum:
  


Current Time: Thu Jun 13 09:49:52 CEST 2024

Total time taken to generate the page: 0.02374 seconds