?
Solved

borland builder code linking to visual studio static library

Posted on 2001-07-20
2
Medium Priority
?
730 Views
Last Modified: 2013-12-14
a static library is built using visual studio

the *.lib file and its header is placed in the borland project folder

in borland the path to libraries is set to the project folder

the visual studio created header is #included in the borland code and the header compiles ok evidenced by the fact that the types defined in the header are available in the borland code

Q is: what is required to use the functions defined in the *.lib file?

keep in mind that a DLL is not desired!


0
Comment
Question by:lirtua
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:lirtua
ID: 6303982
Comment 1:

I have run COFF2OMF on the library and included the resulting *.lib in the borland project
0
 
LVL 14

Accepted Solution

by:
AlexVirochovsky earned 200 total points
ID: 6304580
You can't use a static library made for VC++ (or any other compiler for
that matter). Static libraries are not cross-compiler, for any number
of reasons, from naming conventions to internal structure differences.

You can also do it yourself using impdef and such. A few pages
that are "Must See" for using 3rd party DLLs:

http://www.pacifier.com/~jgibbon/program_tip_4.html 
http://www.bcbdev.com/articles/vcdll.htm 
http://community.borland.com/article/0,1410,16599,00.html 
Alex
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question