compiling help

Mumit Khan khan@NanoTech.Wisc.EDU
Fri Dec 31 13:28:00 GMT 1999

On Fri, 17 Dec 1999, Joel Guerrero wrote:

> I'm trying to compile a code but I get the following error:
> g++ -o obj/euler.o -c src/euler.cpp
> src/euler.cpp:  In method `void Solver::LSODESIteration()':
> src/euler.cpp:6033: warning: assignment to `int'from `double'
> src/euler.cpp:6149:  implicit declaration of function `int lsodes_(...)'

The last line is your clue. GCC is going to conform to the standard more
and more as releases come out, and it's going to break code that used to
compile, but not quite legal C++. 

Since you say you're new in this, you may just want to compile with
-fpermissive to get through the build, and report this to the maintainer
of whatever package you're trying to build.

  $ g++ -fpermissive -o obj/euler.o -c src/euler.cpp

The solution is to make sure that the prototype or definition of lsodes
is visible in euler.cpp. From the looks of it, lsodes is a function 
written in Fortran that your C++ code is interfacing with.

You must provide the correct prototype, whatever that is for this
particular function.


Want to unsubscribe from this list?
Send a message to

More information about the Cygwin mailing list