This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Issues with using g++ and dynamic libraries


Hi everybody !!

I have used gcc to open and run functions from a dll using the following
source code:

(See attached file: main.c) and the little shared dll object: (See attached
file: CC.c)

by using the following makefile: (See attached file: makefile)

and everything goes OK.

But when using g++ (e.g. running makefile using  'make COMPILER_NAME=g++')
the shared library results not being readable.

The gcc version I'm using is 3.3, installed on a previously running 2.96.

Can you help me ? What did I do wrong ?

            Luca Illengo

Attachment: main.c
Description: Binary data

Attachment: CC.c
Description: Binary data

Attachment: makefile
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]