Problem with library to Neural Networks (FANN) in Visual Studio 2008

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2008
Posts: 10
Reputation: 35nando is an unknown quantity at this point 
Solved Threads: 0
35nando 35nando is offline Offline
Newbie Poster

Problem with library to Neural Networks (FANN) in Visual Studio 2008

 
0
  #1
Mar 30th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,454
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1476
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Problem with library to Neural Networks (FANN) in Visual Studio 2008

 
0
  #2
Mar 30th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 10
Reputation: 35nando is an unknown quantity at this point 
Solved Threads: 0
35nando 35nando is offline Offline
Newbie Poster

Re: Problem with library to Neural Networks (FANN) in Visual Studio 2008

 
0
  #3
Apr 1st, 2009
Thank you, i will try to do so.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC