Discussion:
Windows Installation
Chris Spencer
2007-02-07 21:38:29 UTC
Permalink
Has anyone recently tried compiling FANN on Windows? I just tried with
MVS C++ 2005, and I get over a hundred errors. Most seem to be of the
form:

Error 1 error C2491: 'fann_create_standard' : definition of dllimport
function not allowed z:\fann\fann\src\fann.c 31

Is there any way to fix this?

Regards,
Chris

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
kgantchev
2007-08-06 19:48:30 UTC
Permalink
There are many different project types that can be
built with the various versions of Visual Studio, so
for some a compile time define is used to determine
the kind of function declaration that is needed.
I think you are building an executable and not using a
In the menu choose Project Properties.
Open Configuration Properties, C/C++, Preprocessor.
In Preprocessor Definitions add FANN_NO_DLL
use semicolon ; as a separator.
The default for MSVC++ 2003 or later is to use the
fann dll's. To use a lib or fixedfann.c, floatfann.c
or doublefann.c with those compilers FANN_NO_DLL has
to be defined before including the fann headers.
The default for previous MSVC compilers such as VC++ 6
is not to use dll's. To use dll's FANN_USE_DLL has to
be defined before including the fann headers.
The full explanation of the dll import/exports is in
fann.h in the section 'Macros used to define DLL
external entrypoints'
Has anyone recently tried compiling FANN on Windows? I just tried with
MVS C++ 2005, and I get over a hundred errors. Most seem to be of the
Error 1 error C2491: 'fann_create_standard' : definition of dllimport
function not allowed z:\fann\fann\src\fann.c 31
Is there any way to fix this?
Regards,
Chris
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Fann-general mailing list
https://lists.sourceforge.net/lists/listinfo/fann-general
--
View this message in context: http://www.nabble.com/Windows-Installation-tf3189780.html#a12021898
Sent from the fann-general mailing list archive at Nabble.com.
Loading...