Link error using C dylib from C++ dylib
Link error using C dylib from C++ dylib
- Subject: Link error using C dylib from C++ dylib
- From: Daniel Luis dos Santos <email@hidden>
- Date: Thu, 18 Sep 2008 15:00:15 +0100
Hello,
I have an xcode project with one C source file and header file. These
are built into a BSD dylib.
Have another xcode project with a Cpp source file and header file. I
include the C source in the Cpp file in which one of the class's
methods I call the C function. The C header file inclusion is
surrounded by a extern "C" { #include "csource.h" }. I then drag the
built dylib from the C project into the link with libraries build
phase of the C++ target. The function from the C source is not found
by the linker.
Do I have to do anything else to get this to link ?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden