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


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Re: [gnupic] GPSim - was Re: [gnupic] What simulator for 18F2580 to use ?
From: Borut Razem ####@####.####
Date: 24 Oct 2008 05:41:49 -0000
Message-Id: <4901601E.6080202@siol.net>

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

Subject: Re: [gnupic] GPSim - was Re: [gnupic] What simulator for 18F2580 to use ?
From: Vaclav ####@####.####
Date: 24 Oct 2008 14:41:04 -0000
Message-Id: <4893.8408-31640-1022099017-1224858951@seznam.cz>

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: ####@####.####
> > For additional commands, e-mail: ####@####.####
> >
> >
> >   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
> 
> 
> 
> 
Subject: Re: [gnupic] GPSim - was Re: [gnupic] What simulator for 18F2580 to use ?
From: Borut Razem ####@####.####
Date: 24 Oct 2008 18:25:37 -0000
Message-Id: <4902131E.1080605@siol.net>

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

Subject: Re: [gnupic] GPSim - was Re: [gnupic] What simulator for 18F2580 to use ?
From: Vaclav ####@####.####
Date: 27 Oct 2008 08:50:22 -0000
Message-Id: <4761.8215-4895-1645408038-1225097419@seznam.cz>

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 ####@####.####
> 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: ####@####.####
> >> > For additional commands, e-mail: ####@####.####
> >> >
> >> >
> >> >  
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: ####@####.####
> >> For additional commands, e-mail: ####@####.####
> >>
> >>
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: ####@####.####
> > For additional commands, e-mail: ####@####.####
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
> 
> 
> 
> 
Subject: Re: [gnupic] GPSim - was Re: [gnupic] What simulator for 18F2580 to use ?
From: Borut Razem ####@####.####
Date: 28 Oct 2008 06:16:18 -0000
Message-Id: <4906AE2D.7090904@siol.net>

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
> .
> .
> .

Subject: Re: [gnupic] GPSim - was Re: [gnupic] What simulator for 18F2580 to use ?
From: Vaclav ####@####.####
Date: 29 Oct 2008 09:38:30 -0000
Message-Id: <5536.9997-31233-923704635-1225273107@seznam.cz>

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
> 
Subject: Re: [gnupic] GPSim - was Re: [gnupic] What simulator for 18F2580 to use ?
From: Borut Razem ####@####.####
Date: 30 Oct 2008 05:57:16 -0000
Message-Id: <49094CB9.7090401@siol.net>

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: ####@####.####
>
>

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: ####@####.####
> 
> 
> 
> 
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.