delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/12/18/16:29:16

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
X-Authentication-Warning: hp2.xraylith.wisc.edu: khan owned process doing -bs
Date: Sat, 18 Dec 1999 15:28:58 -0600 (CST)
From: Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU>
To: Joel Guerrero <joegi AT geocities DOT com>
cc: cygwin mail list <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: compiling help
In-Reply-To: <385B0694.9330CD2F@geocities.com>
Message-ID: <Pine.HPP.3.96.991218152430.1147B-100000@hp2.xraylith.wisc.edu>
MIME-Version: 1.0

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.

Regards,
Mumit



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019