0

Hi,

I have a situation I need help with. I have c++ s/w from two vendors each of whom have given me a library and a header. Only problem is that one of them is compiled with vc++ and the other with g++.I cant use them both in the same s/w because they dont compile together(I've tried.There are several unresolvable issues).So I decided to run two separate executables and make them interact through sockets. I wanted to clarify if this was the only solution or are there better ones(leaving out shared memory,message queues etc.)

4
Contributors
5
Replies
6
Views
7 Years
Discussion Span
Last Post by Stefano Mtangoo
0

2) Make one of them a DLL

And it must be C DLL as C++ DLL consists of name mangling which differ among compilers.
Or you can export class using C-functions

0

The problem orig is where VC++ and g++ uses two different formats of name decoration.
For more information refer here: http://en.wikipedia.org/wiki/Name_mangling

In the g++ faq this question is already answered.
refer to it.
[sorry]Ops ! didn't see your above comment ~evstevnmd()[/sorry]

Edited by NicAx64: Ops ! didn't see your above comment ~evstevnmd()

0

is it possible for me to use the dll and not the lib? How?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.