gnupic: Re: [gnupic] GPSim - was Re: [gnupic] What simulator for 18F2580 to use ?


Previous by date: 30 Oct 2008 08:16:16 -0000 Re: [gnupic] GPSim - was Re: [gnupic] What simulator for 18F2580 to use ?, Borut Razem
Next by date: 30 Oct 2008 08:16:16 -0000 gputils development, David Barnett
Previous in thread: 30 Oct 2008 08:16:16 -0000 Re: [gnupic] GPSim - was Re: [gnupic] What simulator for 18F2580 to use ?, Borut Razem
Next in thread:

Subject: Re: [gnupic] GPSim - was Re: [gnupic] What simulator for 18F2580 to use ?
From: Vaclav ####@####.####
Date: 30 Oct 2008 08:16:16 -0000
Message-Id: <5582.10082-27278-183334163-1225354573@seznam.cz>

Hello Borut,

I tried it with success. Source is here: http://publib.boulder.ibm.com/infocenter/iadthelp/v7r0/index.jsp?topic=/com.ibm.etools.iseries.langref.doc/rzan5mst110.htm

First two examples did not work. But when I used "-mno-cygwin" I compiled this example successfully with both gcc and g++.

$ g++ ../fgetwcexample.c
../fgetwcexample.c: In function `int main()':
../fgetwcexample.c:17: error: `fgetwc' undeclared (first use this function)
../fgetwcexample.c:17: error: (Each undeclared identifier is reported only once for each function it appears in.)

$ gcc ../fgetwcexample.c
/cygdrive/c/DOCUME~1/c/LOCALS~1/Temp/ccneLKog.o:fgetwcexample.c:(.text+0x71): undefined reference to `_fgetwc'
collect2: ld returned 1 exit status

$ g++ -mno-cygwin ../fgetwcexample.c
$ ./a.exe
Unable to open: "fgetwc.dat"

The main difference is that in GPSim I get "::fgetwc undeclared" while in this example "fgetwc undeclared". So it seems to me that the problem is related to "::" - namespace -, isn't it ?

Vaclav

> ------------ Původní zpráva ------------
> Od: Borut Razem ####@####.####
> Předmět: Re: [gnupic] GPSim - was Re: [gnupic] What simulator for 18F2580 to use
> ?
> Datum: 30.10.2008 07:07:29
> ----------------------------------------
> Hi Vaclav,
> 
> I can compile gpsim without problems: I'm updating snapshots at 
> http://gpsim.sourceforge.net/snap.php.
> 
> I think something is wrong with your cygwin / gcc installation. Maybe 
> you should try to install it from scratch...
> 
> Maybe you could write a simple program calling fgetwc function, just to 
> see if it compiles without problems?
> 
> Borut
> 
> 
> Vaclav Peroutka wrote:
> > Hello Borut,
> >
> > I have slightly older version of Cygwin.
> > $ uname -srv
> > CYGWIN_NT-5.1 1.5.24(0.156/4/2) 2007-01-31 10:57
> >
> > $ gcc --version
> > gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
> > Copyright (C) 2004 Free Software Foundation, Inc.
> >
> > I have wchar.h and stdio.h in the same directories. I even put 
> > "-I/usr/include/mingw". But I still get the same error. If I 
> > understand correctly, you can compile GPSim without problems ? I am 
> > interested, what is wrong in my system. But I do not have a time for 
> > it. So I will probably give it up...
> >
> > Thank you for help,
> > Vaclav
> >
> >>
> >> my cygwin version is:
> >>
> >> bash-3.2$ uname -srv
> >> CYGWIN_NT-5.1 1.5.25(0.156/4/2) 2008-06-12 19:34
> >>
> >> gcc version is:
> >>
> >> gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
> >>
> >> Function fgetwc is declared in /usr/include/mingw/stdio.h and in 
> >> /usr/include/mingw/wchar.h.
> >>
> >> Borut
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: ####@####.####
> > For additional commands, e-mail: ####@####.####
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
> 
> 
> 
> 

Previous by date: 30 Oct 2008 08:16:16 -0000 Re: [gnupic] GPSim - was Re: [gnupic] What simulator for 18F2580 to use ?, Borut Razem
Next by date: 30 Oct 2008 08:16:16 -0000 gputils development, David Barnett
Previous in thread: 30 Oct 2008 08:16:16 -0000 Re: [gnupic] GPSim - was Re: [gnupic] What simulator for 18F2580 to use ?, Borut Razem
Next in thread:


Powered by ezmlm-browse 0.20.