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 6 2033 br**********@gm ail.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
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*********@gma il.com schreef: br**********@gm ail.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
br**********@gm ail.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
Ok thank you...
I will repost my question there. br**********@gm ail.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 br**********@gm ail.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++". This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 Atul's website:
* The different stages of compilation are encapsulated in visitor
classes, which (in my opinion) makes the code quite readable, and also
made writing the compiler a lot easier. The yacc rules merely generate
the abstract syntax...
|
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 converted to an
expression with type ''pointer to type'' that points to the
initial element of the array object and is not an lvalue."
Now, consider following piece of code,
|
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
|
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 solution or deleted the VsWebcache to get rid of this error
I suspect this error is related to that we strong named several assemblies for using queued components in NET EnterpriseServices. In development environment, we did not install those...
|
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 Project (Windiows Forms or Console) in VS2005 using Managed C++
and put a Debug:;Assert(false) or Debug::Writeline("test") in there and then
compile in Debug and release Configurations. The result is the same in both.
Debug class calls are not...
| |
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 code 1.
Clicking the "Show Detailed Compiler Output" link on the error page
shows a large command line that looks like it's using the vbc compiler
to build the auto-generated theme code, but doesn't display any useful
error messages. Executing...
|
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 fairly frequently.
It tends to happen soon after deploying (via xcopy) a new version of the
site and then running iisreset, although sometimes it may happen anything up
to 15 minutes after a new version has been deployed.
|
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, nor in
speed of the compiled result.
As a benchmark i took a bootstrap of the SmallEiffel Compiler (which
has 38 files with around 100 kloc). The times i got were very
reliable. The bootstraping (compile the c files from last eiffel
compiler...
|
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 reads
expressions? (If the former case, why can't functions be called before
their definitions?)
Thanks,
Jordan
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |