Subj : Re: C++ and C libraries To : borland.public.cpp.borlandcpp From : BEC Entwicklung Date : Tue Apr 27 2004 11:03 am Use the keyword __cdecl to define a c-function in a cpp-file. In cpp the compiler genarate name extensions to seperate class and global functions. If you define an function TestFunc the compilernames shows c - _TestFunc cpp - _TestFunc@anythink The same while import a function. If you define the imported function (in the library header) instead of "_extern void TextFunc(void);" with "_extern void __cdecl TestFunc(void);" it will work. Best reagrds Micha > But my real application is written in C++, and has all the source files ..cpp > Is there a solution ? Is it possible in BC++4.0 to change some option and > let it link .c and .cpp files ? > Thanks in advance > Luigi Fonti .