how to use DLL file with g++?

P

Pawel_Iks

I have some library in dll file, I have also header of this lib. What
to write in line command to compile and build my code? Let us assume
that I have my code in main.cpp file and lib.h, lib.dll are in the
same directory and I am using mingw compiler g++...
 
I

Ian Collins

Pawel_Iks said:
I have some library in dll file, I have also header of this lib. What
to write in line command to compile and build my code? Let us assume
that I have my code in main.cpp file and lib.h, lib.dll are in the
same directory and I am using mingw compiler g++...

Try asking on a windows group, this group is for C++ language questions.
 
M

Mug

I have some library in dll file, I have also header of this lib. What
to write in line command to compile and build my code? Let us assume
that I have my code in main.cpp file and lib.h, lib.dll are in the
same directory and I am using mingw compiler g++...

hello,i had the similar experience,my solution is compile the dll with
your program,
assume it's main.cpp your program,then:
g++ main.c mydll.

it works,but i don't think it"s a good solution.since i'm really not
good with windows things.
Mug
 

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
473,778
Messages
2,569,605
Members
45,237
Latest member
AvivMNS

Latest Threads

Top