What simulator for 18F2580 to use ?

View: New views
14 Messages — Rating Filter:   Alert me  

What simulator for 18F2580 to use ?

by vaclavpe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I started with 18F2580 and SDCC programming. But I would like to simulate somehow the generated code.

What simulator would you recommend me ? I saw that gpsim_w32 does not support this chip. Is there any other simulator which can load HEX file and run it ?

Thank you,
Vaclav

---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...


Re: What simulator for 18F2580 to use ?

by Martin Habets :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Depends on what features you use. I'd compile it for a (more or less)
supported chip like 18f2455 or so.

--
Martin

On Fri, Oct 17, 2008 at 03:04:11PM +0200, Vaclav Peroutka wrote:
> Hello,
>
> I started with 18F2580 and SDCC programming. But I would like to simulate somehow the generated code.
>
> What simulator would you recommend me ? I saw that gpsim_w32 does not support this chip. Is there any other simulator which can load HEX file and run it ?
>
> Thank you,
> Vaclav

---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...


Re: What simulator for 18F2580 to use ?

by vaclavpe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Martin,

currently I have problems with CAN bus. Unfortunately this block is not in 18f2455 or similar chips. Honestly, I am not sure if GPSIM project is still active - last update was in November 9th, 2006... And last chips supported are those 18Fxx2.

Vaclav


Vaclav
> ----------------------------------------
> Depends on what features you use. I'd compile it for a (more or less)
> supported chip like 18f2455 or so.
>
> --
> Martin
>

---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...


Re: What simulator for 18F2580 to use ?

by Robert Pearce-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 22 October 2008, Vaclav Peroutka wrote:
> Honestly, I am not sure if GPSIM project is still active - last update was
> in November 9th, 2006...
AAAAArrrrrgh! Look a bit closer for pity's sake! When was the last SVN
checkin?

I'll give you a hint - this September.

Granted we've not done a release for far too long, but if you'd glanced back
through the mailing list you'll see there was a proposal for a new release
posted a month ago.

To answer your demand, no we don't currently support the CAN peripheral, and I
don't expect that to change in a hurry unless you felt like contributing
something yourself. None of the developers have any spare time at the moment,
and none of us are using CAN.

---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...


Re: What simulator for 18F2580 to use ?

by Xiaofan Chen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Oct 23, 2008 at 1:53 AM, Rob Pearce <rob@...> wrote:
> To answer your demand, no we don't currently support the CAN peripheral, and I
> don't expect that to change in a hurry unless you felt like contributing
> something yourself. None of the developers have any spare time at the moment,
> and none of us are using CAN.

On the other hand, it is difficult to write a CAN simulator. Even Microchip
MPSIM does not support CAN. It is the same situation for USB.

XIaofan

---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...


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

by vaclavpe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> To answer your demand, no we don't currently support the CAN peripheral, and I
> don't expect that to change in a hurry unless you felt like contributing
> something yourself.

On one side I would like to. But I am quite busy now. I tried to compile trunk GPSim on Windows platform but something is wrong (as you can see below). So, I even can not compile GPSim to start some development...

Vaclav


$ make -f makefile.mingw
for D in cli src src/dspic gui gpsim modules; do make -C $D -f makefile.mingw all; done
make[1]: Entering directory `/cygdrive/d/V/sw/GPSim_devel/trunk/cli'
c++ -mno-cygwin -mtune=pentium -mms-bitfields -O2 -I ../.. -I ../plat/win32 -I /cygdrive/d/V/install/GTK_2.0/include/gli
b-2.0 -I /cygdrive/d/V/install/GTK_2.0/lib/glib-2.0/include -I /cygdrive/d/V/install/GTK_2.0/include/gtk-2.0 -I /cygdriv
e/d/V/install/GTK_2.0/lib/gtk-2.0/include -I /cygdrive/d/V/install/GTK_2.0/include/cairo -I /cygdrive/d/V/install/GTK_2.
0/include/pango-1.0 -I /cygdrive/c/cygwin/usr/include -DHAVE_READLINE -DHAVE_GUI -DHAVE_NSCLEAN_READLINE -DUSE_READLINE_
DLL -DYYSTACK_USE_ALLOCA -DHAVE_SOCKETS  -Wall -Wno-format -c cmd_attach.cc -o cmd_attach.o
In file included from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/postypes.h:46,
                 from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iosfwd:50,
                 from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ios:44,
                 from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ostream:45,
                 from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iostream:45,
                 from cmd_attach.cc:22:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:146: error: `::fgetwc' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:147: error: `::fgetws' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:148: error: `::fputwc' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:149: error: `::fputws' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:150: error: `::fwide' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:151: error: `::fwprintf' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:152: error: `::fwscanf' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:153: error: `::getwc' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:154: error: `::getwchar' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:159: error: `::putwc' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:160: error: `::putwchar' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:161: error: `::swprintf' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:162: error: `::swscanf' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:163: error: `::ungetwc' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:164: error: `::vfwprintf' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:166: error: `::vfwscanf' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:168: error: `::vswprintf' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:170: error: `::vswscanf' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:172: error: `::vwprintf' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:174: error: `::vwscanf' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:182: error: `::wcsftime' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:189: error: `::wcstod' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:191: error: `::wcstof' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:193: error: `::wcstok' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:194: error: `::wcstol' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:195: error: `::wcstoul' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:196: error: `::wcsxfrm' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:202: error: `::wprintf' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:203: error: `::wscanf' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:249: error: `::wcstold' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:258: error: `::wcstoll' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:259: error: `::wcstoull' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:265: error: `__gnu_cxx::wcstold' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:266: error: `__gnu_cxx::wcstoll' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:267: error: `__gnu_cxx::wcstoull' has not been declared
In file included from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_algobase.h:67,
                 from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/char_traits.h:46,
                 from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ios:46,
                 from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ostream:45,
                 from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iostream:45,
                 from cmd_attach.cc:22:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cstdlib:181: error: `::strtold' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cstdlib:200: error: `__gnu_cxx::strtold' has not been declared

---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...


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

by Borut Razem :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Vaclav,

did you install the mingw-runtime cygwin package?

Borut


Vaclav Peroutka wrote:

>> To answer your demand, no we don't currently support the CAN peripheral, and I
>> don't expect that to change in a hurry unless you felt like contributing
>> something yourself.
>>    
>
> On one side I would like to. But I am quite busy now. I tried to compile trunk GPSim on Windows platform but something is wrong (as you can see below). So, I even can not compile GPSim to start some development...
>
> Vaclav
>
>
> $ make -f makefile.mingw
> for D in cli src src/dspic gui gpsim modules; do make -C $D -f makefile.mingw all; done
> make[1]: Entering directory `/cygdrive/d/V/sw/GPSim_devel/trunk/cli'
> c++ -mno-cygwin -mtune=pentium -mms-bitfields -O2 -I ../.. -I ../plat/win32 -I /cygdrive/d/V/install/GTK_2.0/include/gli
> b-2.0 -I /cygdrive/d/V/install/GTK_2.0/lib/glib-2.0/include -I /cygdrive/d/V/install/GTK_2.0/include/gtk-2.0 -I /cygdriv
> e/d/V/install/GTK_2.0/lib/gtk-2.0/include -I /cygdrive/d/V/install/GTK_2.0/include/cairo -I /cygdrive/d/V/install/GTK_2.
> 0/include/pango-1.0 -I /cygdrive/c/cygwin/usr/include -DHAVE_READLINE -DHAVE_GUI -DHAVE_NSCLEAN_READLINE -DUSE_READLINE_
> DLL -DYYSTACK_USE_ALLOCA -DHAVE_SOCKETS  -Wall -Wno-format -c cmd_attach.cc -o cmd_attach.o
> In file included from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/postypes.h:46,
>                  from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iosfwd:50,
>                  from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ios:44,
>                  from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ostream:45,
>                  from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iostream:45,
>                  from cmd_attach.cc:22:
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:146: error: `::fgetwc' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:147: error: `::fgetws' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:148: error: `::fputwc' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:149: error: `::fputws' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:150: error: `::fwide' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:151: error: `::fwprintf' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:152: error: `::fwscanf' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:153: error: `::getwc' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:154: error: `::getwchar' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:159: error: `::putwc' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:160: error: `::putwchar' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:161: error: `::swprintf' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:162: error: `::swscanf' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:163: error: `::ungetwc' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:164: error: `::vfwprintf' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:166: error: `::vfwscanf' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:168: error: `::vswprintf' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:170: error: `::vswscanf' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:172: error: `::vwprintf' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:174: error: `::vwscanf' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:182: error: `::wcsftime' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:189: error: `::wcstod' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:191: error: `::wcstof' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:193: error: `::wcstok' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:194: error: `::wcstol' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:195: error: `::wcstoul' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:196: error: `::wcsxfrm' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:202: error: `::wprintf' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:203: error: `::wscanf' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:249: error: `::wcstold' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:258: error: `::wcstoll' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:259: error: `::wcstoull' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:265: error: `__gnu_cxx::wcstold' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:266: error: `__gnu_cxx::wcstoll' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:267: error: `__gnu_cxx::wcstoull' has not been declared
> In file included from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_algobase.h:67,
>                  from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/char_traits.h:46,
>                  from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ios:46,
>                  from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ostream:45,
>                  from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iostream:45,
>                  from cmd_attach.cc:22:
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cstdlib:181: error: `::strtold' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cstdlib:200: error: `__gnu_cxx::strtold' has not been declared
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: gnupic-unsubscribe@...
> For additional commands, e-mail: gnupic-help@...
>
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...


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

by vaclavpe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Borut,

yes, I have it. Anyway, I run makefile from Cygwin. Inside I have gcc-3.4.4 (the one which is shown in error list).

In MinGW installation I use GCC-3.4.5 and cygwin does not care about it. I use MinGW compiler regularly without any problem.

If I try to run make from cmd.exe I immediately get an error. If Itry to run make from minSys environment the system can not find anything - no make, no gcc... If I put MinGW path in cygwin environment to run gcc from mingw, I get following error:

$ c++ -mno-cygwin -mtune=pentium -mms-bitfields -O2 -I ../plat/win32 -I/cygdrive/d/V/install/GTK_2.0/include/glib-2.0 -
I/cygdrive/d/V/install/GTK_2.0/lib/glib-2.0/include -I/cygdrive/d/V/install/GTK_2.0/include -DHAVE_GUI  -Wall -Wno-form
at -c main.cc -o main.o
In file included from main.cc:41:
../src/interface.h:29:18: glib.h: No such file or directory
In file included from ../src/registers.h:35,
                 from ../src/ui.h:11,
                 from ../src/cmd_gpsim.h:5,
                 from ../src/interface.h:47,
                 from main.cc:41:
../src/value.h:65: error: `gint64' has not been declared
../src/value.h:65: error: ISO C++ forbids declaration of `parameter' with no type
etc...

But I am sure that glib.h is in GTK_2.0 directory and the same line works for cygwin's gcc (but there are those problems with fgetwc ..). It might be that MinGW-gcc doest not understand /cygdrive/ stuff ???

Vaclav

> Hi Vaclav,
>
> did you install the mingw-runtime cygwin package?
>
> Borut
>
>
> Vaclav Peroutka wrote:
> >> To answer your demand, no we don't currently support the CAN peripheral, and
> I
> >> don't expect that to change in a hurry unless you felt like contributing
> >> something yourself.
> >>    
> >
> > On one side I would like to. But I am quite busy now. I tried to compile trunk
> GPSim on Windows platform but something is wrong (as you can see below). So, I
> even can not compile GPSim to start some development...
> >
> > Vaclav
> >
> >
> > $ make -f makefile.mingw
> > for D in cli src src/dspic gui gpsim modules; do make -C $D -f makefile.mingw
> all; done
> > make[1]: Entering directory `/cygdrive/d/V/sw/GPSim_devel/trunk/cli'
> > c++ -mno-cygwin -mtune=pentium -mms-bitfields -O2 -I ../.. -I ../plat/win32 -I
> /cygdrive/d/V/install/GTK_2.0/include/gli
> > b-2.0 -I /cygdrive/d/V/install/GTK_2.0/lib/glib-2.0/include -I
> /cygdrive/d/V/install/GTK_2.0/include/gtk-2.0 -I /cygdriv
> > e/d/V/install/GTK_2.0/lib/gtk-2.0/include -I
> /cygdrive/d/V/install/GTK_2.0/include/cairo -I /cygdrive/d/V/install/GTK_2.
> > 0/include/pango-1.0 -I /cygdrive/c/cygwin/usr/include -DHAVE_READLINE
> -DHAVE_GUI -DHAVE_NSCLEAN_READLINE -DUSE_READLINE_
> > DLL -DYYSTACK_USE_ALLOCA -DHAVE_SOCKETS  -Wall -Wno-format -c cmd_attach.cc -o
> cmd_attach.o
> > In file included from
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/postypes.h:46,
> >                  from
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iosfwd:50,
> >                  from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ios:44,
> >                  from
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ostream:45,
> >                  from
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iostream:45,
> >                  from cmd_attach.cc:22:
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:146: error: `::fgetwc'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:147: error: `::fgetws'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:148: error: `::fputwc'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:149: error: `::fputws'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:150: error: `::fwide'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:151: error: `::fwprintf'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:152: error: `::fwscanf'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:153: error: `::getwc'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:154: error: `::getwchar'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:159: error: `::putwc'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:160: error: `::putwchar'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:161: error: `::swprintf'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:162: error: `::swscanf'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:163: error: `::ungetwc'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:164: error:
> `::vfwprintf' has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:166: error: `::vfwscanf'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:168: error:
> `::vswprintf' has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:170: error: `::vswscanf'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:172: error: `::vwprintf'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:174: error: `::vwscanf'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:182: error: `::wcsftime'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:189: error: `::wcstod'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:191: error: `::wcstof'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:193: error: `::wcstok'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:194: error: `::wcstol'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:195: error: `::wcstoul'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:196: error: `::wcsxfrm'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:202: error: `::wprintf'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:203: error: `::wscanf'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:249: error: `::wcstold'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:258: error: `::wcstoll'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:259: error: `::wcstoull'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:265: error:
> `__gnu_cxx::wcstold' has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:266: error:
> `__gnu_cxx::wcstoll' has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:267: error:
> `__gnu_cxx::wcstoull' has not been declared
> > In file included from
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_algobase.h:67,
> >                  from
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/char_traits.h:46,
> >                  from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ios:46,
> >                  from
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ostream:45,
> >                  from
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iostream:45,
> >                  from cmd_attach.cc:22:
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cstdlib:181: error: `::strtold'
> has not been declared
> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cstdlib:200: error:
> `__gnu_cxx::strtold' has not been declared
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: gnupic-unsubscribe@...
> > For additional commands, e-mail: gnupic-help@...
> >
> >
> >  
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: gnupic-unsubscribe@...
> For additional commands, e-mail: gnupic-help@...
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...


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

by Borut Razem :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Vaclav,

the makefile.mingw makefiles are designed to be used with the cygwin
environment from cmd.exe.

The procedure should be:

- run the command prompt (cmd.exe)
- verify that the cygwin bin directory is included in the PATH
environment variable (for example: C:\cygwin\bin)
- you shouldn't mix mingw and cygwin environments, so check that mingw
and msys directories ARE NOT included in the PATH env. variable (there
is no C:\MinGW\bin and c:\msys\1.0\bin in the PATH)
- change current directory to the root of gpsim source tree (the
directory where is the ChangeLog file)
- run
  make -f makefile.mingw
  from the command prompt

Borut


Vaclav Peroutka wrote:

> Hi Borut,
>
> yes, I have it. Anyway, I run makefile from Cygwin. Inside I have
> gcc-3.4.4 (the one which is shown in error list).
> In MinGW installation I use GCC-3.4.5 and cygwin does not care about
> it. I use MinGW compiler regularly without any problem.
>
> If I try to run make from cmd.exe I immediately get an error. If Itry
> to run make from minSys environment the system can not find anything -
> no make, no gcc... If I put MinGW path in cygwin environment to run
> gcc from mingw, I get following error:
>
> $ c++ -mno-cygwin -mtune=pentium -mms-bitfields -O2 -I ../plat/win32
> -I/cygdrive/d/V/install/GTK_2.0/include/glib-2.0 -
> I/cygdrive/d/V/install/GTK_2.0/lib/glib-2.0/include
> -I/cygdrive/d/V/install/GTK_2.0/include -DHAVE_GUI  -Wall -Wno-form
> at -c main.cc -o main.o
> In file included from main.cc:41:
> ../src/interface.h:29:18: glib.h: No such file or directory
> In file included from ../src/registers.h:35,
>                 from ../src/ui.h:11,
>                 from ../src/cmd_gpsim.h:5,
>                 from ../src/interface.h:47,
>                 from main.cc:41:
> ../src/value.h:65: error: `gint64' has not been declared
> ../src/value.h:65: error: ISO C++ forbids declaration of `parameter'
> with no type
> etc...
>
> But I am sure that glib.h is in GTK_2.0 directory and the same line
> works for cygwin's gcc (but there are those problems with fgetwc ..).
> It might be that MinGW-gcc doest not understand /cygdrive/ stuff ???
>
> Vaclav
>
>> Hi Vaclav,
>>
>> did you install the mingw-runtime cygwin package?
>>
>> Borut
>>
>>
>> Vaclav Peroutka wrote:
>> >> To answer your demand, no we don't currently support the CAN
>> peripheral, and
>> I >> don't expect that to change in a hurry unless you felt like
>> contributing >> something yourself. >>     >
>> > On one side I would like to. But I am quite busy now. I tried to
>> compile trunk
>> GPSim on Windows platform but something is wrong (as you can see
>> below). So, I
>> even can not compile GPSim to start some development...
>> >
>> > Vaclav
>> >
>> >
>> > $ make -f makefile.mingw
>> > for D in cli src src/dspic gui gpsim modules; do make -C $D -f
>> makefile.mingw
>> all; done
>> > make[1]: Entering directory `/cygdrive/d/V/sw/GPSim_devel/trunk/cli'
>> > c++ -mno-cygwin -mtune=pentium -mms-bitfields -O2 -I ../.. -I
>> ../plat/win32 -I
>> /cygdrive/d/V/install/GTK_2.0/include/gli
>> > b-2.0 -I /cygdrive/d/V/install/GTK_2.0/lib/glib-2.0/include -I
>> /cygdrive/d/V/install/GTK_2.0/include/gtk-2.0 -I /cygdriv
>> > e/d/V/install/GTK_2.0/lib/gtk-2.0/include -I
>> /cygdrive/d/V/install/GTK_2.0/include/cairo -I
>> /cygdrive/d/V/install/GTK_2.
>> > 0/include/pango-1.0 -I /cygdrive/c/cygwin/usr/include -DHAVE_READLINE
>> -DHAVE_GUI -DHAVE_NSCLEAN_READLINE -DUSE_READLINE_
>> > DLL -DYYSTACK_USE_ALLOCA -DHAVE_SOCKETS  -Wall -Wno-format -c
>> cmd_attach.cc -o
>> cmd_attach.o
>> > In file included from
>> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/postypes.h:46,
>> >                  from
>> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iosfwd:50,
>> >                  from
>> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ios:44,
>> >                  from
>> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ostream:45,
>> >                  from
>> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iostream:45,
>> >                  from cmd_attach.cc:22:
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:146: error:
>> `::fgetwc'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:147: error:
>> `::fgetws'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:148: error:
>> `::fputwc'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:149: error:
>> `::fputws'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:150: error:
>> `::fwide'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:151: error:
>> `::fwprintf'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:152: error:
>> `::fwscanf'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:153: error:
>> `::getwc'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:154: error:
>> `::getwchar'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:159: error:
>> `::putwc'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:160: error:
>> `::putwchar'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:161: error:
>> `::swprintf'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:162: error:
>> `::swscanf'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:163: error:
>> `::ungetwc'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:164: error:
>> `::vfwprintf' has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:166: error:
>> `::vfwscanf'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:168: error:
>> `::vswprintf' has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:170: error:
>> `::vswscanf'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:172: error:
>> `::vwprintf'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:174: error:
>> `::vwscanf'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:182: error:
>> `::wcsftime'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:189: error:
>> `::wcstod'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:191: error:
>> `::wcstof'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:193: error:
>> `::wcstok'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:194: error:
>> `::wcstol'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:195: error:
>> `::wcstoul'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:196: error:
>> `::wcsxfrm'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:202: error:
>> `::wprintf'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:203: error:
>> `::wscanf'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:249: error:
>> `::wcstold'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:258: error:
>> `::wcstoll'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:259: error:
>> `::wcstoull'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:265: error:
>> `__gnu_cxx::wcstold' has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:266: error:
>> `__gnu_cxx::wcstoll' has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:267: error:
>> `__gnu_cxx::wcstoull' has not been declared
>> > In file included from
>> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_algobase.h:67,
>> >                  from
>> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/char_traits.h:46,
>> >                  from
>> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ios:46,
>> >                  from
>> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ostream:45,
>> >                  from
>> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iostream:45,
>> >                  from cmd_attach.cc:22:
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cstdlib:181: error:
>> `::strtold'
>> has not been declared
>> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cstdlib:200: error:
>> `__gnu_cxx::strtold' has not been declared
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: gnupic-unsubscribe@...
>> > For additional commands, e-mail: gnupic-help@...
>> >
>> >
>> >  
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: gnupic-unsubscribe@...
>> For additional commands, e-mail: gnupic-help@...
>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: gnupic-unsubscribe@...
> For additional commands, e-mail: gnupic-help@...
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...


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

by vaclavpe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Borut, sorry for the late replay.

I did the steps you described. But the result is the same to the one from cygwin environment. I got the same result - see below. I just left cygwin/bin in the PATH. there is no mingw at all. It seems to me that there is incompatibility between unicode and non-unicode environments. Could you report which gcc do you use ? I will try to update my gcc in cygwin. Maybe it will help.

Vaclav

D:\V\sw\GPSim_devel\trunk>echo %PATH%
c:\cygwin\bin

D:\V\sw\GPSim_devel\trunk>make -f makefile.mingw
for D in cli src src/dspic gui gpsim modules; do make -C $D -f makefile.mingw all; done
make[1]: Entering directory `/cygdrive/d/V/sw/GPSim_devel/trunk/cli'
c++ -mno-cygwin -mtune=pentium -mms-bitfields -O2 -I ../.. -I ../plat/win32 -I /cygdrive/d/V/install/GTK_2.0/include/gli
b-2.0 -I /cygdrive/d/V/install/GTK_2.0/lib/glib-2.0/include -I /cygdrive/d/V/install/GTK_2.0/include/gtk-2.0 -I /cygdriv
e/d/V/install/GTK_2.0/lib/gtk-2.0/include -I /cygdrive/d/V/install/GTK_2.0/include/cairo -I /cygdrive/d/V/install/GTK_2.
0/include/pango-1.0 -I /cygdrive/c/cygwin/usr/include -DHAVE_READLINE -DHAVE_GUI -DHAVE_NSCLEAN_READLINE -DUSE_READLINE_
DLL -DYYSTACK_USE_ALLOCA -DHAVE_SOCKETS  -Wall -Wno-format -c cmd_attach.cc -o cmd_attach.o
In file included from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/postypes.h:46,
                 from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iosfwd:50,
                 from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ios:44,
                 from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ostream:45,
                 from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iostream:45,
                 from cmd_attach.cc:22:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:146: error: `::fgetwc' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:147: error: `::fgetws' has not been declared
/usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:148: error: `::fputwc' has not been declared
.
.
.

> ------------ Původní zpráva ------------
> Od: Borut Razem <borut.razem@...>
> Předmět: Re: [gnupic] GPSim - was Re: [gnupic] What simulator for 18F2580 to use
> ?
> Datum: 24.10.2008 22:25:50
> ----------------------------------------
> Hi Vaclav,
>
> the makefile.mingw makefiles are designed to be used with the cygwin
> environment from cmd.exe.
>
> The procedure should be:
>
> - run the command prompt (cmd.exe)
> - verify that the cygwin bin directory is included in the PATH
> environment variable (for example: C:\cygwin\bin)
> - you shouldn't mix mingw and cygwin environments, so check that mingw
> and msys directories ARE NOT included in the PATH env. variable (there
> is no C:\MinGW\bin and c:\msys\1.0\bin in the PATH)
> - change current directory to the root of gpsim source tree (the
> directory where is the ChangeLog file)
> - run
>   make -f makefile.mingw
>   from the command prompt
>
> Borut
>
>
> Vaclav Peroutka wrote:
> > Hi Borut,
> >
> > yes, I have it. Anyway, I run makefile from Cygwin. Inside I have
> > gcc-3.4.4 (the one which is shown in error list).
> > In MinGW installation I use GCC-3.4.5 and cygwin does not care about
> > it. I use MinGW compiler regularly without any problem.
> >
> > If I try to run make from cmd.exe I immediately get an error. If Itry
> > to run make from minSys environment the system can not find anything -
> > no make, no gcc... If I put MinGW path in cygwin environment to run
> > gcc from mingw, I get following error:
> >
> > $ c++ -mno-cygwin -mtune=pentium -mms-bitfields -O2 -I ../plat/win32
> > -I/cygdrive/d/V/install/GTK_2.0/include/glib-2.0 -
> > I/cygdrive/d/V/install/GTK_2.0/lib/glib-2.0/include
> > -I/cygdrive/d/V/install/GTK_2.0/include -DHAVE_GUI  -Wall -Wno-form
> > at -c main.cc -o main.o
> > In file included from main.cc:41:
> > ../src/interface.h:29:18: glib.h: No such file or directory
> > In file included from ../src/registers.h:35,
> >                 from ../src/ui.h:11,
> >                 from ../src/cmd_gpsim.h:5,
> >                 from ../src/interface.h:47,
> >                 from main.cc:41:
> > ../src/value.h:65: error: `gint64' has not been declared
> > ../src/value.h:65: error: ISO C++ forbids declaration of `parameter'
> > with no type
> > etc...
> >
> > But I am sure that glib.h is in GTK_2.0 directory and the same line
> > works for cygwin's gcc (but there are those problems with fgetwc ..).
> > It might be that MinGW-gcc doest not understand /cygdrive/ stuff ???
> >
> > Vaclav
> >
> >> Hi Vaclav,
> >>
> >> did you install the mingw-runtime cygwin package?
> >>
> >> Borut
> >>
> >>
> >> Vaclav Peroutka wrote:
> >> >> To answer your demand, no we don't currently support the CAN
> >> peripheral, and
> >> I >> don't expect that to change in a hurry unless you felt like
> >> contributing >> something yourself. >>     >
> >> > On one side I would like to. But I am quite busy now. I tried to
> >> compile trunk
> >> GPSim on Windows platform but something is wrong (as you can see
> >> below). So, I
> >> even can not compile GPSim to start some development...
> >> >
> >> > Vaclav
> >> >
> >> >
> >> > $ make -f makefile.mingw
> >> > for D in cli src src/dspic gui gpsim modules; do make -C $D -f
> >> makefile.mingw
> >> all; done
> >> > make[1]: Entering directory `/cygdrive/d/V/sw/GPSim_devel/trunk/cli'
> >> > c++ -mno-cygwin -mtune=pentium -mms-bitfields -O2 -I ../.. -I
> >> ../plat/win32 -I
> >> /cygdrive/d/V/install/GTK_2.0/include/gli
> >> > b-2.0 -I /cygdrive/d/V/install/GTK_2.0/lib/glib-2.0/include -I
> >> /cygdrive/d/V/install/GTK_2.0/include/gtk-2.0 -I /cygdriv
> >> > e/d/V/install/GTK_2.0/lib/gtk-2.0/include -I
> >> /cygdrive/d/V/install/GTK_2.0/include/cairo -I
> >> /cygdrive/d/V/install/GTK_2.
> >> > 0/include/pango-1.0 -I /cygdrive/c/cygwin/usr/include -DHAVE_READLINE
> >> -DHAVE_GUI -DHAVE_NSCLEAN_READLINE -DUSE_READLINE_
> >> > DLL -DYYSTACK_USE_ALLOCA -DHAVE_SOCKETS  -Wall -Wno-format -c
> >> cmd_attach.cc -o
> >> cmd_attach.o
> >> > In file included from
> >> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/postypes.h:46,
> >> >                  from
> >> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iosfwd:50,
> >> >                  from
> >> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ios:44,
> >> >                  from
> >> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ostream:45,
> >> >                  from
> >> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iostream:45,
> >> >                  from cmd_attach.cc:22:
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:146: error:
> >> `::fgetwc'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:147: error:
> >> `::fgetws'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:148: error:
> >> `::fputwc'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:149: error:
> >> `::fputws'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:150: error:
> >> `::fwide'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:151: error:
> >> `::fwprintf'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:152: error:
> >> `::fwscanf'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:153: error:
> >> `::getwc'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:154: error:
> >> `::getwchar'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:159: error:
> >> `::putwc'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:160: error:
> >> `::putwchar'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:161: error:
> >> `::swprintf'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:162: error:
> >> `::swscanf'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:163: error:
> >> `::ungetwc'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:164: error:
> >> `::vfwprintf' has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:166: error:
> >> `::vfwscanf'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:168: error:
> >> `::vswprintf' has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:170: error:
> >> `::vswscanf'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:172: error:
> >> `::vwprintf'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:174: error:
> >> `::vwscanf'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:182: error:
> >> `::wcsftime'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:189: error:
> >> `::wcstod'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:191: error:
> >> `::wcstof'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:193: error:
> >> `::wcstok'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:194: error:
> >> `::wcstol'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:195: error:
> >> `::wcstoul'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:196: error:
> >> `::wcsxfrm'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:202: error:
> >> `::wprintf'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:203: error:
> >> `::wscanf'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:249: error:
> >> `::wcstold'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:258: error:
> >> `::wcstoll'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:259: error:
> >> `::wcstoull'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:265: error:
> >> `__gnu_cxx::wcstold' has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:266: error:
> >> `__gnu_cxx::wcstoll' has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:267: error:
> >> `__gnu_cxx::wcstoull' has not been declared
> >> > In file included from
> >> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_algobase.h:67,
> >> >                  from
> >> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/char_traits.h:46,
> >> >                  from
> >> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ios:46,
> >> >                  from
> >> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ostream:45,
> >> >                  from
> >> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iostream:45,
> >> >                  from cmd_attach.cc:22:
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cstdlib:181: error:
> >> `::strtold'
> >> has not been declared
> >> > /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cstdlib:200: error:
> >> `__gnu_cxx::strtold' has not been declared
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: gnupic-unsubscribe@...
> >> > For additional commands, e-mail: gnupic-help@...
> >> >
> >> >
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: gnupic-unsubscribe@...
> >> For additional commands, e-mail: gnupic-help@...
> >>
> >>
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: gnupic-unsubscribe@...
> > For additional commands, e-mail: gnupic-help@...
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: gnupic-unsubscribe@...
> For additional commands, e-mail: gnupic-help@...
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...


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

by Borut Razem :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello  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



Vaclav Peroutka wrote:

> Hi Borut, sorry for the late replay.
>
> I did the steps you described. But the result is the same to the one
> from cygwin environment. I got the same result - see below. I just
> left cygwin/bin in the PATH. there is no mingw at all. It seems to me
> that there is incompatibility between unicode and non-unicode
> environments. Could you report which gcc do you use ? I will try to
> update my gcc in cygwin. Maybe it will help.
>
> Vaclav
>
> D:\V\sw\GPSim_devel\trunk>echo %PATH%
> c:\cygwin\bin
>
> D:\V\sw\GPSim_devel\trunk>make -f makefile.mingw
> for D in cli src src/dspic gui gpsim modules; do make -C $D -f
> makefile.mingw all; done
> make[1]: Entering directory `/cygdrive/d/V/sw/GPSim_devel/trunk/cli'
> c++ -mno-cygwin -mtune=pentium -mms-bitfields -O2 -I ../.. -I
> ../plat/win32 -I /cygdrive/d/V/install/GTK_2.0/include/gli
> b-2.0 -I /cygdrive/d/V/install/GTK_2.0/lib/glib-2.0/include -I
> /cygdrive/d/V/install/GTK_2.0/include/gtk-2.0 -I /cygdriv
> e/d/V/install/GTK_2.0/lib/gtk-2.0/include -I
> /cygdrive/d/V/install/GTK_2.0/include/cairo -I
> /cygdrive/d/V/install/GTK_2.
> 0/include/pango-1.0 -I /cygdrive/c/cygwin/usr/include -DHAVE_READLINE
> -DHAVE_GUI -DHAVE_NSCLEAN_READLINE -DUSE_READLINE_
> DLL -DYYSTACK_USE_ALLOCA -DHAVE_SOCKETS  -Wall -Wno-format -c
> cmd_attach.cc -o cmd_attach.o
> In file included from
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/postypes.h:46,
>                 from
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iosfwd:50,
>                 from
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ios:44,
>                 from
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/ostream:45,
>                 from
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iostream:45,
>                 from cmd_attach.cc:22:
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:146: error:
> `::fgetwc' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:147: error:
> `::fgetws' has not been declared
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:148: error:
> `::fputwc' has not been declared
> .
> .
> .


---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...


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

by vaclavpe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...


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

by Borut Razem :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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: gnupic-unsubscribe@...
> For additional commands, e-mail: gnupic-help@...
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...


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

by vaclavpe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <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: gnupic-unsubscribe@...
> > For additional commands, e-mail: gnupic-help@...
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: gnupic-unsubscribe@...
> For additional commands, e-mail: gnupic-help@...
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...