From: "ratnadeep joshi" <ratngccc@rediffmail.com>
To: gcc@gcc.gnu.org
Subject: c anc c++ compiling
Date: Sun, 27 Jan 2002 05:57:00 -0000 [thread overview]
Message-ID: <20020127091315.7199.qmail@mailFA7.rediffmail.com> (raw)
hello ,
1. I compiled and linked two source files one
of which is c and other is c++ . I called
a function which was in c++ file from c file .
gcc flagged an error..
I gave :
$>gcc a.c a.cpp
Error was : undefined reference to that
function
When i ran the same with g++ , it worked
$>g++ a.c a.cpp
No error
What happens exactly ?
2. Now i want to add c++ code to objc compiler
cc1obj . i.e i will link one more file which
is .cpp with other objc source files which are
.c . Here the same problem arises .
The thing that we can't make here compiler
g++ as it happens through stages..and it
changes
What can be done for this ?
Thanking you in anticipation ...
- Ratnadeep Joshi
next reply other threads:[~2002-01-27 9:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-27 5:57 ratnadeep joshi [this message]
2002-01-27 6:12 ` Stephano Mariani
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020127091315.7199.qmail@mailFA7.rediffmail.com \
--to=ratngccc@rediffmail.com \
--cc=gcc@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).