* Linking C functions into C++ objects
@ 2006-07-08 19:53 iamatul
0 siblings, 0 replies; only message in thread
From: iamatul @ 2006-07-08 19:53 UTC (permalink / raw)
To: gcc-help
[-- Attachment #1: Type: text/plain, Size: 595 bytes --]
I am trying to write a small program which dynamically loads a C shared
library and create wrapper objects in C++. gcc version is 3.4.5 and
platform is Gentoo Linux.
Under Linux, gcc & g++ are similar i.e. generate object code and
the extern "C" or extern "C++" prefix only affect at link time ?
(could be wrong, please correct).
Now, when I link, I get all kinds of error messages with test.c
and best.cpp. I have attached the tar ball if someone could
look into it ?
I wrote two versions where the code is compiled with gcc or
with g++. Both give same error.
Thanks in advance.
--
Atul
[-- Attachment #2: resolver.tar.gz --]
[-- Type: application/octet-stream, Size: 3458 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-07-08 19:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-08 19:53 Linking C functions into C++ objects iamatul
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).