468,484 Members | 1,645 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,484 developers. It's quick & easy.

Does the gcc compiler have a VC 6.0 C++ compilation mode (interfacing with classes over dll boundary)?

Hello,

I am looking for a solution to interface with C++ classes implemented
in a dll compiled by gcc.
This dll will be however accessed by a visual c++ compiled host (not
made by me).

Both implementations will share headers that define virtual c++ class
interfaces.

Is this possible? In other words, can the gcc compiler behave like the
Visual C++ compiler?
I know that by default the object memory mapping model differs for both
compilers.

Thanks in advance.

Best regards,

Bram Doornbos

Sep 6 '06 #1
6 1829

br**********@gmail.com wrote:
Hello,

I am looking for a solution to interface with C++ classes implemented
in a dll compiled by gcc.
This dll will be however accessed by a visual c++ compiled host (not
made by me).

Both implementations will share headers that define virtual c++ class
interfaces.

Is this possible? In other words, can the gcc compiler behave like the
Visual C++ compiler?
I know that by default the object memory mapping model differs for both
compilers.

Thanks in advance.

Best regards,

Bram Doornbos

Then How to access Native OS functionality ? Windows native calls are
quite different than that of unix. So even if you are able to map
memory model, native call issue is still there.

--Naresh Prajapati

Sep 6 '06 #2
Thank you for your quick response, but I think you don't understand my
question.

I now use gcc to compile win32 binaries (using cygwin and mingw).
There are no native os calls to unix or linux involved here.

My question is about the difference in memory layout of C++ classes
between gcc and vc++ and if this can be made compatible by using any
compiler directive at the gcc side...

nk*********@gmail.com schreef:
br**********@gmail.com wrote:
Hello,

I am looking for a solution to interface with C++ classes implemented
in a dll compiled by gcc.
This dll will be however accessed by a visual c++ compiled host (not
made by me).

Both implementations will share headers that define virtual c++ class
interfaces.

Is this possible? In other words, can the gcc compiler behave like the
Visual C++ compiler?
I know that by default the object memory mapping model differs for both
compilers.

Thanks in advance.

Best regards,

Bram Doornbos


Then How to access Native OS functionality ? Windows native calls are
quite different than that of unix. So even if you are able to map
memory model, native call issue is still there.

--Naresh Prajapati
Sep 6 '06 #3

br**********@gmail.com wrote:
Hello,

I am looking for a solution to interface with C++ classes implemented
in a dll compiled by gcc.
This dll will be however accessed by a visual c++ compiled host (not
made by me).

Both implementations will share headers that define virtual c++ class
interfaces.

Is this possible? In other words, can the gcc compiler behave like the
Visual C++ compiler?
I know that by default the object memory mapping model differs for both
compilers.
You might have better results by posting your question on gnu.c++.help.

Regards,

Jon Trauntvein

Sep 6 '06 #4
Ok thank you...
I will repost my question there.

Sep 6 '06 #5
br**********@gmail.com wrote:
Thank you for your quick response, but I think you don't understand my
question.

I now use gcc to compile win32 binaries (using cygwin and mingw).
There are no native os calls to unix or linux involved here.

My question is about the difference in memory layout of C++ classes
between gcc and vc++ and if this can be made compatible by using any
compiler directive at the gcc side...
[snip]

a) Please do not top-post.
b) Your question is off-topic here and belongs in a dedicated gcc forum.
c) Please the FAQ and the Welcome post for what is topical in this group.
Best

Kai-Uwe Bux
Sep 6 '06 #6
br**********@gmail.com wrote:
Ok thank you...
I will repost my question there.
GP gave the wrong group. Try gnu.g++.help. Note the "g++" as opposed
to "c++".
Sep 6 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Tim Freeman | last post: by
13 posts views Thread by junky_fellow | last post: by
13 posts views Thread by Jason Huang | last post: by
1 post views Thread by Invalidlastname | last post: by
7 posts views Thread by Mark Carrington | last post: by
reply views Thread by =?Utf-8?B?cm95?= | last post: by
11 posts views Thread by MonkeeSage | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by theflame83 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.