How to use function from dll file in C++ code?

P

Pawel_Iks

I want to use netCDF library, and I have dll file without header file,
I know what functions are in this lib, and how to use it, but how to
compile project using this dll ?? I use g++ compiler ...
 
V

Victor Bazarov

Pawel_Iks said:
I want to use netCDF library, and I have dll file without header file,
I know what functions are in this lib, and how to use it, but how to
compile project using this dll ?? I use g++ compiler ...

Your question is specific to the compiler and to the operating system
you're using. Please consider posting to the newsgroup dedicated to
those.

V
 
J

James Kanze

Your question is specific to the compiler and to the operating
system you're using.

Yes and no. To use a function in C++, you must have a
declaration of the function visible in scope. That's a pure C++
constraint, and if you don't have the headers corresponding to
the DLL/static library, you generally can't use it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,199
Messages
2,571,045
Members
47,643
Latest member
ashutoshjha_1101

Latest Threads

Top