473,508 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Rgarding the diffrences in obj files

Hello all,

I need small help regarding the diffrences of .obj files .

what is the difference in the .obj files in the following two cases apart
from teh names of the variables and functions?
1) the .obj file created when x.c is compiled noramlly as a "C" file?
2) the .obj file created when x.c is forced to be treated as CPP file by
using compiler option /TP?

How can one remove the differenceds between these two.

Thanks in advance

Best Regards
Raghu
Mar 2 '06 #1
1 1462
Raghu wrote:
Hello all,

I need small help regarding the diffrences of .obj files .

what is the difference in the .obj files in the following two cases apart
from teh names of the variables and functions?
1) the .obj file created when x.c is compiled noramlly as a "C" file?
2) the .obj file created when x.c is forced to be treated as CPP file by
using compiler option /TP?

How can one remove the differenceds between these two.

Thanks in advance

Best Regards
Raghu


This is compiler-specific and beyond the scope of standard C++. See
this FAQ for some places where you might get a better answer:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

However, the biggest thing that might happen is that names might be
mangled in the C++ version unless they are qualified by extern "C". You
might be able to get around this in any number of ways, e.g., defining
a compiler-specific alias for a function so that a C program can call
the C++-mangled version. I'd suggest consulting a group for your
compiler for a more throrough answer.

Cheers! --M

Mar 2 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
14146
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip...
44
3991
by: Xah Lee | last post by:
here's a large exercise that uses what we built before. suppose you have tens of thousands of files in various directories. Some of these files are identical, but you don't know which ones are...
0
6075
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
18
3142
by: JKop | last post by:
Here's what I know so far: You have a C++ project. You have source files in it. When you go to compile it, first thing the preprocessor sticks the header files into each source file. So now...
3
3078
by: pooja | last post by:
Suppose i have created a class c1 with f1()in c1.cpp and included this c1.cpp in file1.cpp file , which is also having main() by giving the statement #include "c1.cpp". the same i can do by...
11
5547
by: ambika | last post by:
Iam just trying to know "c". And I have a small doubt about these header files. The header files just contain the declaration part...Where is the definition for these declarations written??And how...
22
2977
by: Daniel Billingsley | last post by:
Ok, I wanted to ask this separate from nospam's ridiculous thread in hopes it could get some honest attention. VB6 had a some simple and fast mechanisms for retrieving values from basic text...
19
1875
by: Extremist | last post by:
Hi there, I have an application written in Python 2.3, wxPython 2.4 , C++, OpenGL OS: Fedora Core 3 Now I need to upgrade it using Python 2.4 and wxPython 2.6 OS: Fedora Core 6 There was a...
3
5156
by: aRTx | last post by:
I have try a couple of time but does not work for me My files everytime are sortet by NAME. I want to Sort my files by Date-desc. Can anyone help me to do it? The Script <? /* ORIGJINALI
0
7223
marktang
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,...
0
7321
Oralloy
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,...
0
7377
jinu1996
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...
1
7036
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...
0
7489
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5624
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3191
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1547
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.