gnupic: Re: [gnupic] GPSim - was Re: [gnupic] What simulator for 18F2580 to use ?
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: ####@####.####
>
>