472,958 Members | 2,718 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

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 1988

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Tim Freeman | last post by:
Doing an independent study with Dave Beazley this quarter, Atul Varma has written a C compiler on his own in Python. It generates annotated x86 assembly code from arbitrary C files. Quoting...
13
by: junky_fellow | last post by:
N869, Page 47, "Except when it is the operand of the sizeof operator or the unary & operator, or is a string literal used to initialize an array, an expression that has type ''array of type'' is...
13
by: Jason Huang | last post by:
Hi, Would someone explain the following coding more detail for me? What's the ( ) for? CurrentText = (TextBox)e.Item.Cells.Controls; Thanks. Jason
1
by: Invalidlastname | last post by:
Hi, Our developer team recently started getting the compilation error, see below, once a while running the asp.net web application from Visual Studio 2003 (in debug mode), and we have to rebuild the...
1
by: adhingra | last post by:
I stumbled upon something which does not make sense "Debug class methods are not automatically suppressed by the managed c++ compiler when the project is build in release mode" Create a a...
7
by: Mark Carrington | last post by:
I'm developing a web app in .NET 2 using C#, and occasionally see this error, apparently something to do with the theme used on the site: Compiler Error Message: The compiler failed with error...
0
by: =?Utf-8?B?cm95?= | last post by:
Hi, We've recently upgraded our ASP.Net 1.1 web application to ASP.Net 2.0 (Web Application Project Model). One one of our staging web servers (W2K), we've started receiving the above error...
19
by: llothar | last post by:
I must say i didn't expect this. I just did some measures on FreeBSD 6.2 with gcc 3.4.6 and there is absolutely no significant difference between 32 and 64 bit mode - neither in compilation speed,...
11
by: MonkeeSage | last post by:
A quick question about how python parses a file into compiled bytecode. Does it parse the whole file into AST first and then compile the AST, or does it build and compile the AST on the fly as it...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.