| | |
Problem with library to Neural Networks (FANN) in Visual Studio 2008
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2008
Posts: 10
Reputation:
Solved Threads: 0
Hi!
I added to my project in Visual Studio 2008 library to work with Neural Networks (FANN) http://www.geocities.com/freegoldbar/fann_cpp.zip.
When i try to compile, following error occurs:
c:\neu\neur\neur\src\include\fann_cpp.h(921) : error C2440: 'reinterpret_cast' : cannot convert from 'va_list' to 'const unsigned int *'
Conversion requires a constructor or user-defined-conversion operator, which can't be used by const_cast or reinterpret_cast
c:\neu\neur\neur\src\include\fann_cpp.h(971) : error C2440: 'reinterpret_cast' : cannot convert from 'va_list' to 'const unsigned int *'
Conversion requires a constructor or user-defined-conversion operator, which can't be used by const_cast or reinterpret_cast
c:\neu\neur\neur\src\include\fann_cpp.h(1018) : error C2440: 'reinterpret_cast' : cannot convert from 'va_list' to 'const unsigned int *'
Conversion requires a constructor or user-defined-conversion operator, which can't be used by const_cast or reinterpret_cast
c:\neu\neur\neur\src\include\fann_cpp.h(2484) : warning C4244: 'initializing' : conversion from 'float' to 'fann_type', possible loss of data
c:\neu\neur\neur\src\include\fann_cpp.h(3443) : error C3641: 'FANN::neural_net::internal_callback' : invalid calling convention '__stdcall ' for function compiled with /clr:pure or /clr:safe
I added to my project in Visual Studio 2008 library to work with Neural Networks (FANN) http://www.geocities.com/freegoldbar/fann_cpp.zip.
When i try to compile, following error occurs:
c:\neu\neur\neur\src\include\fann_cpp.h(921) : error C2440: 'reinterpret_cast' : cannot convert from 'va_list' to 'const unsigned int *'
Conversion requires a constructor or user-defined-conversion operator, which can't be used by const_cast or reinterpret_cast
c:\neu\neur\neur\src\include\fann_cpp.h(971) : error C2440: 'reinterpret_cast' : cannot convert from 'va_list' to 'const unsigned int *'
Conversion requires a constructor or user-defined-conversion operator, which can't be used by const_cast or reinterpret_cast
c:\neu\neur\neur\src\include\fann_cpp.h(1018) : error C2440: 'reinterpret_cast' : cannot convert from 'va_list' to 'const unsigned int *'
Conversion requires a constructor or user-defined-conversion operator, which can't be used by const_cast or reinterpret_cast
c:\neu\neur\neur\src\include\fann_cpp.h(2484) : warning C4244: 'initializing' : conversion from 'float' to 'fann_type', possible loss of data
c:\neu\neur\neur\src\include\fann_cpp.h(3443) : error C3641: 'FANN::neural_net::internal_callback' : invalid calling convention '__stdcall ' for function compiled with /clr:pure or /clr:safe
its not possible to typecast a va_list object into an int* pointer. What you will have to do is create an int array, loop through the va_list and then pass the array to the function. google for va_list to get examples of looping through the list.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
![]() |
Other Threads in the C++ Forum
- Previous Thread: accessing individual charcters of a string/misc
- Next Thread: Aggregation Carpet Calculator
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion count data delete deploy desktop directshow dll download dynamic encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news node number output parameter pointer problem program programming project proxy python random read recursion recursive return string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






