« Return to Thread: Error compiling CInt with cygwin

Re: Error compiling CInt with cygwin

by Axel Naumann :: Rate this Message:

Reply to Author | View in Thread

Hi Stefano,

once you have fixed these errors you have ported CINT to Mingw - that's
why I said porting requires _at_least_ adding an entry in the configure
file. You will have to check the sources to see why the compiler sees
these lines, and decide how to fix it. It's usually because an "#if
defined" doesn't mention the mingw preprocessor identifier. We can
discuss the implementation details in private email.

Cheers, Axel.

Stefano Mora - Eos S.r.l. wrote:

> Yes, done ... and i put the MinGW path before /usr/bin but when i compile i
> have this errors:
>
>
> mora@PC26 /cygdrive/y/Eos/Test/CInt/cint
> $ ./configure --arch=mingw
> Using /usr/lib/libreadline.a
> Using /usr/lib/libncurses.a
>
> Writing Makefile.conf...
> Writing inc/configcint.h...
> Done.
> Run "make" to build cint.
> Run "make help" to see the available build targets.
>
> mora@PC26 /cygdrive/y/Eos/Test/CInt/cint
> $ make
> make -C src
> make[1]: Entering directory `/cygdrive/y/Test/CInt/cint/src'
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG
> __ST
> D_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c Api.cxx
> In file included from ../inc/Api.h:25,
>                  from Api.cxx:16:
> ../inc/G__ci.h:384: error: `__int64' does not name a type
> ../inc/G__ci.h:385: error: `__int64' does not name a type
> In file included from ../inc/Api.h:25,
>                  from Api.cxx:16:
> ../inc/G__ci.h:931: error: `G__int64' does not name a type
> ../inc/G__ci.h:932: error: `G__uint64' does not name a type
> ../inc/G__ci.h:1850: error: `G__int64' has not been declared
> ../inc/G__ci.h:1850: error: ISO C++ forbids declaration of `value' with no
> type
> ../inc/G__ci.h:1851: error: `G__uint64' has not been declared
> ../inc/G__ci.h:1851: error: ISO C++ forbids declaration of `value' with no
> type
> ../inc/G__ci.h:1853: error: `G__int64' does not name a type
> ../inc/G__ci.h:1854: error: `G__uint64' does not name a type
> ../inc/G__ci.h:1856: error: expected init-declarator before '*' token
> ../inc/G__ci.h:1856: error: expected `,' or `;' before '*' token
> ../inc/G__ci.h:1857: error: expected init-declarator before '*' token
> ../inc/G__ci.h:1857: error: expected `,' or `;' before '*' token
> ../inc/G__ci.h:2462: error: `G__int64' does not name a type
> ../inc/G__ci.h:2463: error: `G__uint64' does not name a type
> In file included from ../inc/Api.h:44,
>                  from Api.cxx:16:
> ../inc/CallFunc.h:85: error: variable or field `SetArg' declared void
> ../inc/CallFunc.h:85: error: expected `;' before '(' token
> ../inc/CallFunc.h:86: error: variable or field `SetArg' declared void
> ../inc/CallFunc.h:86: error: expected `;' before '(' token
> ../inc/CallFunc.h:88: error: variable or field `SetArgRef' declared void
> ../inc/CallFunc.h:88: error: expected `;' before '(' token
> ../inc/CallFunc.h:89: error: variable or field `SetArgRef' declared void
> ../inc/CallFunc.h:89: error: expected `;' before '(' token
> ../inc/CallFunc.h:99: error: `G__int64' does not name a type
> In file included from common.h:1407,
>                  from Api.cxx:17:
> fproto.h:317: error: `G__int64' has not been declared
> fproto.h:317: error: ISO C++ forbids declaration of `val' with no type
> fproto.h:675: error: `G__int64' has not been declared
> fproto.h:675: error: ISO C++ forbids declaration of `value' with no type
> fproto.h:676: error: `G__uint64' has not been declared
> fproto.h:676: error: ISO C++ forbids declaration of `value' with no type
> fproto.h:678: error: `G__int64' does not name a type
> fproto.h:679: error: `G__uint64' does not name a type
> make[1]: *** [Api.o] Error 1
> make[1]: Leaving directory `/cygdrive/y/Eos/Test/CInt/cint/src'
> make: *** [libcint.dll] Error 2
>
>
> mora@PC26 /cygdrive/y/Eos/Test/CInt/cint
> $ g++ --version
> g++.exe (GCC) 3.4.2 (mingw-special)
> Copyright (C) 2004 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> --
> Ing. Stefano Mora
>
> ----- Original Message -----
> From: "Axel Naumann" <Axel.Naumann@...>
> To: "Stefano Mora - Eos S.r.l." <smora@...>
> Cc: <cint@...>
> Sent: Tuesday, September 11, 2007 4:42 PM
> Subject: Re: [CINT] Error compiling CInt with cygwin
>
>
>> Hi Stefano,
>>
>> you would ahve to port CINT to MingW. The minimum is putting it as a new
>> architecture into configure.
>>
>> Axel.
>>
>> Stefano Mora - Eos S.r.l. wrote:
>>> Hi,
>>> i'm trying to compile with mingw but i have some compilation error due
> to
>>> the fact that, i guess, the g++ called is the cygwin one and not the
> mingw
>>> one.
>>> How can i solve?
>>>
>>> Regards
>>> --
>>> Ing. Stefano Mora
>>>
>>>
>>> ----- Original Message -----
>>>
>>>> Hi Stefano,
>>>>
>>>> Stefano Mora - Eos S.r.l. wrote:
>>>>> Both dll and exe are larger than msvc ones generated.....
>>>>> and i see the cygwin.dll depencences.
>>>> Yes, all of that is expected.
>>>>
>>>>> Is there a way to know which compiler was used to generate exe + dll ?
>>>> I don't understand your question. Do you mean the compiler used e.g.
> for
>>>> building "cmd.exe"? What are you trying to solve?
>>>>
>>>> Axel.
>>>>
>>>>> --
>>>>> Ing. Stefano Mora
>>>>>
>>>
>
>

 « Return to Thread: Error compiling CInt with cygwin