This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Building simple dll with g++
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: "Sisyphus" <kalinabears at iinet dot net dot au>, "gcc" <gcc-help at gcc dot gnu dot org>
- Date: Fri, 16 May 2003 06:46:19 -0500
- Subject: Re: Building simple dll with g++
Hi Rob,
In C++ you need to do this in either the common header file (test.h), or at
the top of the test.cpp file:
extern "C" double test();
You can also decorate/prefix the routine itself with extern "C".
--Eljay