Re: Compiling CINT on MINGW:Errors:

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

Re: Compiling CINT on MINGW:Errors:

by Dr. Prasad, B.V.L.S. :: Rate this Message:

| View Threaded | Show Only this Message

Hi,

Long time back, back in 2008, I was trying to port cint5.18.00 to mingw when I posted a query showing the error.
The reason for this email is: I would like to resolve this error by my self.

any pointers / explanation of the problem will definitely put me on the track of resolving this error.

I think I am more comfortable in fixing the bugs when compared to 2008.

The error:
> In file included from ../inc/Api.h:25,
>                  from v6_random.cxx:27:
> ../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 v6_random.cxx:27:

The corresponding code in the G__ci.h from CINT/src is:
/***********************************************************************
 * Native long long support
 ***********************************************************************/
#if defined(G__WIN32) && !defined(__CINT__)
typedef __int64            G__int64;
typedef unsigned __int64   G__uint64;
#else
typedef long long          G__int64;
typedef unsigned long long G__uint64;
#endif

Definitely the typedef is the problem.
Once this is fixed all others should fall in place for mingw.
This code works very clean on a Linux system.
My goal is to make this work on mingw.

What can I do to help fix this bug.??

Thank you,
Looking forward to your help.

Prasad.






----- Original Message -----
From: "Dr. Prasad, B.V.L.S." <burrashiva@...>
To: Axel Naumann <Axel.Naumann@...>
Cc:
Sent: Thursday, 3 July 2008, 6:47
Subject: Re: [CINT] Compiling CINT on MINGW:Errors:

thank you very much.
Prasad.

Dr. Prasad, B.V.L.S.
MD & CTO,
Helix Genomics Pvt. Ltd.
***************************************************************
As You Progress, There is Some More to Progress - shiva.
***************************************************************



----- Original Message ----
From: Axel Naumann <Axel.Naumann@...>
To: "Dr. Prasad, B.V.L.S." <burrashiva@...>
Cc: cint@...
Sent: Wednesday, 2 July, 2008 11:04:30 AM
Subject: Re: [CINT] Compiling CINT on MINGW:Errors:

Hi,

I will try to fix this during the next few days. I will come back to you
once it's fixed.

Cheers, Axel.

On 2008-07-01 01:02, Dr. Prasad, B.V.L.S. wrote:

> I installed readline5.2 and ran the configure script  >>>./configure --arch=mingw --readline=../readline-5.2
> then used make: I am getting following errors, can some one help ?
> Thank you,
> $ make
> make -C src
> make[1]: Entering directory `/home/pburra/cint/src'
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_debug.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_decl.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_disp.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_dump.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_end.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_error.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_expr.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_fread.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_func.cxx
> v6_func.cxx: In function `int G__library_func(G__value*, char*, G__param*, int)':
> v6_func.cxx:3864: warning: passing NULL used for non-pointer converting 3 of `void G__letint(G__value*, int, long int)'
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_gcoll.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_global1.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_global2.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_ifunc.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_inherit.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_init.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_input.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_intrpt.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_loadfile.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_macro.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_malloc.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_memtest.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_new.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_newlink.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_oldlink.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_opr.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_parse.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pause.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pcode.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pragma.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_quote.cxx
> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_random.cxx
> In file included from ../inc/Api.h:25,
>                  from v6_random.cxx:27:
> ../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 v6_random.cxx:27:
> ../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:1876: error: `G__int64' has not been declared
> ../inc/G__ci.h:1876: error: ISO C++ forbids declaration of `value' with no type
> ../inc/G__ci.h:1877: error: `G__uint64' has not been declared
> ../inc/G__ci.h:1877: error: ISO C++ forbids declaration of `value' with no type
> ../inc/G__ci.h:1879: error: `G__int64' does not name a type
> ../inc/G__ci.h:1880: error: `G__uint64' does not name a type
> ../inc/G__ci.h:1882: error: expected initializer before '*' token
> ../inc/G__ci.h:1883: error: expected initializer before '*' token
> ../inc/G__ci.h:2487: error: `G__int64' does not name a type
> ../inc/G__ci.h:2488: error: `G__uint64' does not name a type
> In file included from ../inc/Api.h:44,
>                  from v6_random.cxx:27:
> ../inc/CallFunc.h:85: error: `G__int64' has not been declared
> ../inc/CallFunc.h:85: error: ISO C++ forbids declaration of `ll' with no type
> ../inc/CallFunc.h:86: error: `G__uint64' has not been declared
> ../inc/CallFunc.h:86: error: ISO C++ forbids declaration of `ull' with no type
> ../inc/CallFunc.h:86: error: `void Cint::G__CallFunc::SetArg(int)' and `void Cint::G__CallFunc::SetArg(int)' cannot be overloaded
> ../inc/CallFunc.h:88: error: `G__int64' has not been declared
> ../inc/CallFunc.h:88: error: ISO C++ forbids declaration of `ll' with no type
> ../inc/CallFunc.h:89: error: `G__uint64' has not been declared
> ../inc/CallFunc.h:89: error: ISO C++ forbids declaration of `ull' with no type
> ../inc/CallFunc.h:89: error: `void Cint::G__CallFunc::SetArgRef(int&)' and `void Cint::G__CallFunc::SetArgRef(int&)' cannot be overloaded
> ../inc/CallFunc.h:99: error: `G__int64' does not name a type
> make[1]: *** [v6_random.o] Error 1
> make[1]: Leaving directory `/home/pburra/cint/src'
> make: *** [libcint.dll] Error 2
>
>
>       __________________________________________________________
> Not happy with your email address?.
> Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
>


      __________________________________________________________
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html



Re: Compiling CINT on MINGW:Errors:

by Philippe Canal :: Rate this Message:

| View Threaded | Show Only this Message

Hi Prasad,

We need to replace the line:

     #if defined(G__WIN32) && !defined(__CINT__)

with something like

    #if defined(G__WIN32)&&  !defined(__CINT__)&&  !defined(__MARKER_FOR_MINGW__)

where the 'missing' piece of information is which symbol
to use instead of  __MARKER_FOR_MINGW__.

Thanks,
Philippe.



On 2/6/12 9:35 PM, Dr. Prasad, B.V.L.S. wrote:

> Hi,
>
> Long time back, back in 2008, I was trying to port cint5.18.00 to mingw when I posted a query showing the error.
> The reason for this email is: I would like to resolve this error by my self.
>
> any pointers / explanation of the problem will definitely put me on the track of resolving this error.
>
> I think I am more comfortable in fixing the bugs when compared to 2008.
>
> The error:
>> In file included from ../inc/Api.h:25,
>>                    from v6_random.cxx:27:
>> ../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 v6_random.cxx:27:
> The corresponding code in the G__ci.h from CINT/src is:
> /***********************************************************************
>   * Native long long support
>   ***********************************************************************/
> #if defined(G__WIN32)&&  !defined(__CINT__)
> typedef __int64            G__int64;
> typedef unsigned __int64   G__uint64;
> #else
> typedef long long          G__int64;
> typedef unsigned long long G__uint64;
> #endif
>
> Definitely the typedef is the problem.
> Once this is fixed all others should fall in place for mingw.
> This code works very clean on a Linux system.
> My goal is to make this work on mingw.
>
> What can I do to help fix this bug.??
>
> Thank you,
> Looking forward to your help.
>
> Prasad.
>
>
>
>
>
>
> ----- Original Message -----
> From: "Dr. Prasad, B.V.L.S."<burrashiva@...>
> To: Axel Naumann<Axel.Naumann@...>
> Cc:
> Sent: Thursday, 3 July 2008, 6:47
> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>
> thank you very much.
> Prasad.
>
> Dr. Prasad, B.V.L.S.
> MD&  CTO,
> Helix Genomics Pvt. Ltd.
> ***************************************************************
> As You Progress, There is Some More to Progress - shiva.
> ***************************************************************
>
>
>
> ----- Original Message ----
> From: Axel Naumann<Axel.Naumann@...>
> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
> Cc: cint@...
> Sent: Wednesday, 2 July, 2008 11:04:30 AM
> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>
> Hi,
>
> I will try to fix this during the next few days. I will come back to you
> once it's fixed.
>
> Cheers, Axel.
>
> On 2008-07-01 01:02, Dr. Prasad, B.V.L.S. wrote:
>> I installed readline5.2 and ran the configure script>>>./configure --arch=mingw --readline=../readline-5.2
>> then used make: I am getting following errors, can some one help ?
>> Thank you,
>> $ make
>> make -C src
>> make[1]: Entering directory `/home/pburra/cint/src'
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_debug.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_decl.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_disp.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_dump.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_end.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_error.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_expr.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_fread.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_func.cxx
>> v6_func.cxx: In function `int G__library_func(G__value*, char*, G__param*, int)':
>> v6_func.cxx:3864: warning: passing NULL used for non-pointer converting 3 of `void G__letint(G__value*, int, long int)'
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_gcoll.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_global1.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_global2.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_ifunc.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_inherit.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_init.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_input.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_intrpt.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_loadfile.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_macro.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_malloc.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_memtest.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_new.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_newlink.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_oldlink.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_opr.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_parse.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pause.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pcode.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pragma.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_quote.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_random.cxx
>> In file included from ../inc/Api.h:25,
>>                    from v6_random.cxx:27:
>> ../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 v6_random.cxx:27:
>> ../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:1876: error: `G__int64' has not been declared
>> ../inc/G__ci.h:1876: error: ISO C++ forbids declaration of `value' with no type
>> ../inc/G__ci.h:1877: error: `G__uint64' has not been declared
>> ../inc/G__ci.h:1877: error: ISO C++ forbids declaration of `value' with no type
>> ../inc/G__ci.h:1879: error: `G__int64' does not name a type
>> ../inc/G__ci.h:1880: error: `G__uint64' does not name a type
>> ../inc/G__ci.h:1882: error: expected initializer before '*' token
>> ../inc/G__ci.h:1883: error: expected initializer before '*' token
>> ../inc/G__ci.h:2487: error: `G__int64' does not name a type
>> ../inc/G__ci.h:2488: error: `G__uint64' does not name a type
>> In file included from ../inc/Api.h:44,
>>                    from v6_random.cxx:27:
>> ../inc/CallFunc.h:85: error: `G__int64' has not been declared
>> ../inc/CallFunc.h:85: error: ISO C++ forbids declaration of `ll' with no type
>> ../inc/CallFunc.h:86: error: `G__uint64' has not been declared
>> ../inc/CallFunc.h:86: error: ISO C++ forbids declaration of `ull' with no type
>> ../inc/CallFunc.h:86: error: `void Cint::G__CallFunc::SetArg(int)' and `void Cint::G__CallFunc::SetArg(int)' cannot be overloaded
>> ../inc/CallFunc.h:88: error: `G__int64' has not been declared
>> ../inc/CallFunc.h:88: error: ISO C++ forbids declaration of `ll' with no type
>> ../inc/CallFunc.h:89: error: `G__uint64' has not been declared
>> ../inc/CallFunc.h:89: error: ISO C++ forbids declaration of `ull' with no type
>> ../inc/CallFunc.h:89: error: `void Cint::G__CallFunc::SetArgRef(int&)' and `void Cint::G__CallFunc::SetArgRef(int&)' cannot be overloaded
>> ../inc/CallFunc.h:99: error: `G__int64' does not name a type
>> make[1]: *** [v6_random.o] Error 1
>> make[1]: Leaving directory `/home/pburra/cint/src'
>> make: *** [libcint.dll] Error 2
>>
>>
>>         __________________________________________________________
>> Not happy with your email address?.
>> Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
>>
>
>        __________________________________________________________
> Not happy with your email address?.
> Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
>
>


Re: Compiling CINT on MINGW:Errors:

by Dr. Prasad, B.V.L.S. :: Rate this Message:

| View Threaded | Show Only this Message



Hi,
Great Pointer and when I added __MARKER_FOR_MINGW__ with __MINGW32__
it worked.
Now it is exiting at a different point with the following error:
****************************************************************************************************
cint/src/newlink.cxx:81:1: error: invalid use of 'extern' in linkage specificati
on
mingw32-make: *** [cint/src/newlink.o] Error 1
***************************************************************************************************

and code from newlink.cxx is:

*********************************************
#ifdef _WIN32
#include "windows.h"
#include <errno.h>
extern "C"
extern const char *G__libname;

FILE *FOpenAndSleep(const char *filename, const char *mode) {
   int tries=0;
   FILE *ret=0;
   while (!ret && ++tries<51)
      if (!(ret=fopen(filename, mode)) && tries<50)
         if (errno!=EACCES && errno!=EEXIST) return 0;
         else Sleep(200);
   if (tries>1)  printf("fopen slept for %g seconds until it succeeeded.\n", (tr
ies-1)/5.);
   return ret;
}

# ifdef fopen
#  undef fopen
# endif
# define fopen(A,B) FOpenAndSleep((A),(B))
#endif
******************************************************************************

is this also related to specifying a MINGW32 directive ?
Please guide me through.
Thank you,
Prasad.

 




----- Original Message -----
From: Philippe Canal <pcanal@...>
To: "Dr. Prasad, B.V.L.S." <burrashiva@...>
Cc: Axel Naumann <Axel.Naumann@...>; "cint@..." <cint@...>
Sent: Tuesday, 7 February 2012, 21:57
Subject: Re: [CINT] Compiling CINT on MINGW:Errors:

Hi Prasad,

We need to replace the line:

     #if defined(G__WIN32) && !defined(__CINT__)

with something like

    #if defined(G__WIN32)&&  !defined(__CINT__)&&  !defined(__MARKER_FOR_MINGW__)

where the 'missing' piece of information is which symbol
to use instead of  __MARKER_FOR_MINGW__.

Thanks,
Philippe.



On 2/6/12 9:35 PM, Dr. Prasad, B.V.L.S. wrote:

> Hi,
>
> Long time back, back in 2008, I was trying to port cint5.18.00 to mingw when I posted a query showing the error.
> The reason for this email is: I would like to resolve this error by my self.
>
> any pointers / explanation of the problem will definitely put me on the track of resolving this error.
>
> I think I am more comfortable in fixing the bugs when compared to 2008.
>
> The error:
>> In file included from ../inc/Api.h:25,
>>                    from v6_random.cxx:27:
>> ../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 v6_random.cxx:27:
> The corresponding code in the G__ci.h from CINT/src is:
> /***********************************************************************
>   * Native long long support
>   ***********************************************************************/
> #if defined(G__WIN32)&&  !defined(__CINT__)
> typedef __int64            G__int64;
> typedef unsigned __int64   G__uint64;
> #else
> typedef long long          G__int64;
> typedef unsigned long long G__uint64;
> #endif
>
> Definitely the typedef is the problem.
> Once this is fixed all others should fall in place for mingw.
> This code works very clean on a Linux system.
> My goal is to make this work on mingw.
>
> What can I do to help fix this bug.??
>
> Thank you,
> Looking forward to your help.
>
> Prasad.
>
>
>
>
>
>
> ----- Original Message -----
> From: "Dr. Prasad, B.V.L.S."<burrashiva@...>
> To: Axel Naumann<Axel.Naumann@...>
> Cc:
> Sent: Thursday, 3 July 2008, 6:47
> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>
> thank you very much.
> Prasad.
>
> Dr. Prasad, B.V.L.S.
> MD&  CTO,
> Helix Genomics Pvt. Ltd.
> ***************************************************************
> As You Progress, There is Some More to Progress - shiva.
> ***************************************************************
>
>
>
> ----- Original Message ----
> From: Axel Naumann<Axel.Naumann@...>
> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
> Cc: cint@...
> Sent: Wednesday, 2 July, 2008 11:04:30 AM
> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>
> Hi,
>
> I will try to fix this during the next few days. I will come back to you
> once it's fixed.
>
> Cheers, Axel.
>
> On 2008-07-01 01:02, Dr. Prasad, B.V.L.S. wrote:
>> I installed readline5.2 and ran the configure script>>>./configure --arch=mingw --readline=../readline-5.2
>> then used make: I am getting following errors, can some one help ?
>> Thank you,
>> $ make
>> make -C src
>> make[1]: Entering directory `/home/pburra/cint/src'
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_debug.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_decl.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_disp.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_dump.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_end.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_error.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_expr.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_fread.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_func.cxx
>> v6_func.cxx: In function `int G__library_func(G__value*, char*, G__param*, int)':
>> v6_func.cxx:3864: warning: passing NULL used for non-pointer converting 3 of `void G__letint(G__value*, int, long int)'
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_gcoll.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_global1.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_global2.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_ifunc.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_inherit.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_init.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_input.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_intrpt.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_loadfile.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_macro.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_malloc.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_memtest.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_new.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_newlink.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_oldlink.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_opr.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_parse.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pause.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pcode.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pragma.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_quote.cxx
>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_random.cxx
>> In file included from ../inc/Api.h:25,
>>                    from v6_random.cxx:27:
>> ../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 v6_random.cxx:27:
>> ../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:1876: error: `G__int64' has not been declared
>> ../inc/G__ci.h:1876: error: ISO C++ forbids declaration of `value' with no type
>> ../inc/G__ci.h:1877: error: `G__uint64' has not been declared
>> ../inc/G__ci.h:1877: error: ISO C++ forbids declaration of `value' with no type
>> ../inc/G__ci.h:1879: error: `G__int64' does not name a type
>> ../inc/G__ci.h:1880: error: `G__uint64' does not name a type
>> ../inc/G__ci.h:1882: error: expected initializer before '*' token
>> ../inc/G__ci.h:1883: error: expected initializer before '*' token
>> ../inc/G__ci.h:2487: error: `G__int64' does not name a type
>> ../inc/G__ci.h:2488: error: `G__uint64' does not name a type
>> In file included from ../inc/Api.h:44,
>>                    from v6_random.cxx:27:
>> ../inc/CallFunc.h:85: error: `G__int64' has not been declared
>> ../inc/CallFunc.h:85: error: ISO C++ forbids declaration of `ll' with no type
>> ../inc/CallFunc.h:86: error: `G__uint64' has not been declared
>> ../inc/CallFunc.h:86: error: ISO C++ forbids declaration of `ull' with no type
>> ../inc/CallFunc.h:86: error: `void Cint::G__CallFunc::SetArg(int)' and `void Cint::G__CallFunc::SetArg(int)' cannot be overloaded
>> ../inc/CallFunc.h:88: error: `G__int64' has not been declared
>> ../inc/CallFunc.h:88: error: ISO C++ forbids declaration of `ll' with no type
>> ../inc/CallFunc.h:89: error: `G__uint64' has not been declared
>> ../inc/CallFunc.h:89: error: ISO C++ forbids declaration of `ull' with no type
>> ../inc/CallFunc.h:89: error: `void Cint::G__CallFunc::SetArgRef(int&)' and `void Cint::G__CallFunc::SetArgRef(int&)' cannot be overloaded
>> ../inc/CallFunc.h:99: error: `G__int64' does not name a type
>> make[1]: *** [v6_random.o] Error 1
>> make[1]: Leaving directory `/home/pburra/cint/src'
>> make: *** [libcint.dll] Error 2
>>
>>
>>         __________________________________________________________
>> Not happy with your email address?.
>> Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
>>
>
>        __________________________________________________________
> Not happy with your email address?.
> Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
>
>


Re: Compiling CINT on MINGW:Errors:

by Philippe Canal :: Rate this Message:

| View Threaded | Show Only this Message

Hi,

Does using:

extern "C" {
    extern const char *G__libname;
}

work better? (this windows section is likely to be required also for ming as it is related
to the way the file system behave).

Cheers,
Philippe.


On 2/7/12 9:19 PM, Dr. Prasad, B.V.L.S. wrote:

>
> Hi,
> Great Pointer and when I added __MARKER_FOR_MINGW__ with __MINGW32__
> it worked.
> Now it is exiting at a different point with the following error:
> ****************************************************************************************************
> cint/src/newlink.cxx:81:1: error: invalid use of 'extern' in linkage specificati
> on
> mingw32-make: *** [cint/src/newlink.o] Error 1
> ***************************************************************************************************
>
> and code from newlink.cxx is:
>
> *********************************************
> #ifdef _WIN32
> #include "windows.h"
> #include<errno.h>
> extern "C"
> extern const char *G__libname;
>
> FILE *FOpenAndSleep(const char *filename, const char *mode) {
>     int tries=0;
>     FILE *ret=0;
>     while (!ret&&  ++tries<51)
>        if (!(ret=fopen(filename, mode))&&  tries<50)
>           if (errno!=EACCES&&  errno!=EEXIST) return 0;
>           else Sleep(200);
>     if (tries>1)  printf("fopen slept for %g seconds until it succeeeded.\n", (tr
> ies-1)/5.);
>     return ret;
> }
>
> # ifdef fopen
> #  undef fopen
> # endif
> # define fopen(A,B) FOpenAndSleep((A),(B))
> #endif
> ******************************************************************************
>
> is this also related to specifying a MINGW32 directive ?
> Please guide me through.
> Thank you,
> Prasad.
>
>  
>
>
>
>
> ----- Original Message -----
> From: Philippe Canal<pcanal@...>
> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
> Cc: Axel Naumann<Axel.Naumann@...>; "cint@..."<cint@...>
> Sent: Tuesday, 7 February 2012, 21:57
> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>
> Hi Prasad,
>
> We need to replace the line:
>
>       #if defined(G__WIN32)&&  !defined(__CINT__)
>
> with something like
>
>      #if defined(G__WIN32)&&   !defined(__CINT__)&&   !defined(__MARKER_FOR_MINGW__)
>
> where the 'missing' piece of information is which symbol
> to use instead of  __MARKER_FOR_MINGW__.
>
> Thanks,
> Philippe.
>
>
>
> On 2/6/12 9:35 PM, Dr. Prasad, B.V.L.S. wrote:
>> Hi,
>>
>> Long time back, back in 2008, I was trying to port cint5.18.00 to mingw when I posted a query showing the error.
>> The reason for this email is: I would like to resolve this error by my self.
>>
>> any pointers / explanation of the problem will definitely put me on the track of resolving this error.
>>
>> I think I am more comfortable in fixing the bugs when compared to 2008.
>>
>> The error:
>>> In file included from ../inc/Api.h:25,
>>>                      from v6_random.cxx:27:
>>> ../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 v6_random.cxx:27:
>> The corresponding code in the G__ci.h from CINT/src is:
>> /***********************************************************************
>>     * Native long long support
>>     ***********************************************************************/
>> #if defined(G__WIN32)&&   !defined(__CINT__)
>> typedef __int64            G__int64;
>> typedef unsigned __int64   G__uint64;
>> #else
>> typedef long long          G__int64;
>> typedef unsigned long long G__uint64;
>> #endif
>>
>> Definitely the typedef is the problem.
>> Once this is fixed all others should fall in place for mingw.
>> This code works very clean on a Linux system.
>> My goal is to make this work on mingw.
>>
>> What can I do to help fix this bug.??
>>
>> Thank you,
>> Looking forward to your help.
>>
>> Prasad.
>>
>>
>>
>>
>>
>>
>> ----- Original Message -----
>> From: "Dr. Prasad, B.V.L.S."<burrashiva@...>
>> To: Axel Naumann<Axel.Naumann@...>
>> Cc:
>> Sent: Thursday, 3 July 2008, 6:47
>> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>>
>> thank you very much.
>> Prasad.
>>
>> Dr. Prasad, B.V.L.S.
>> MD&   CTO,
>> Helix Genomics Pvt. Ltd.
>> ***************************************************************
>> As You Progress, There is Some More to Progress - shiva.
>> ***************************************************************
>>
>>
>>
>> ----- Original Message ----
>> From: Axel Naumann<Axel.Naumann@...>
>> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
>> Cc: cint@...
>> Sent: Wednesday, 2 July, 2008 11:04:30 AM
>> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>>
>> Hi,
>>
>> I will try to fix this during the next few days. I will come back to you
>> once it's fixed.
>>
>> Cheers, Axel.
>>
>> On 2008-07-01 01:02, Dr. Prasad, B.V.L.S. wrote:
>>> I installed readline5.2 and ran the configure script>>>./configure --arch=mingw --readline=../readline-5.2
>>> then used make: I am getting following errors, can some one help ?
>>> Thank you,
>>> $ make
>>> make -C src
>>> make[1]: Entering directory `/home/pburra/cint/src'
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_debug.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_decl.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_disp.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_dump.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_end.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_error.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_expr.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_fread.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_func.cxx
>>> v6_func.cxx: In function `int G__library_func(G__value*, char*, G__param*, int)':
>>> v6_func.cxx:3864: warning: passing NULL used for non-pointer converting 3 of `void G__letint(G__value*, int, long int)'
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_gcoll.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_global1.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_global2.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_ifunc.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_inherit.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_init.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_input.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_intrpt.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_loadfile.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_macro.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_malloc.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_memtest.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_new.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_newlink.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_oldlink.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_opr.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_parse.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pause.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pcode.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pragma.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_quote.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_random.cxx
>>> In file included from ../inc/Api.h:25,
>>>                      from v6_random.cxx:27:
>>> ../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 v6_random.cxx:27:
>>> ../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:1876: error: `G__int64' has not been declared
>>> ../inc/G__ci.h:1876: error: ISO C++ forbids declaration of `value' with no type
>>> ../inc/G__ci.h:1877: error: `G__uint64' has not been declared
>>> ../inc/G__ci.h:1877: error: ISO C++ forbids declaration of `value' with no type
>>> ../inc/G__ci.h:1879: error: `G__int64' does not name a type
>>> ../inc/G__ci.h:1880: error: `G__uint64' does not name a type
>>> ../inc/G__ci.h:1882: error: expected initializer before '*' token
>>> ../inc/G__ci.h:1883: error: expected initializer before '*' token
>>> ../inc/G__ci.h:2487: error: `G__int64' does not name a type
>>> ../inc/G__ci.h:2488: error: `G__uint64' does not name a type
>>> In file included from ../inc/Api.h:44,
>>>                      from v6_random.cxx:27:
>>> ../inc/CallFunc.h:85: error: `G__int64' has not been declared
>>> ../inc/CallFunc.h:85: error: ISO C++ forbids declaration of `ll' with no type
>>> ../inc/CallFunc.h:86: error: `G__uint64' has not been declared
>>> ../inc/CallFunc.h:86: error: ISO C++ forbids declaration of `ull' with no type
>>> ../inc/CallFunc.h:86: error: `void Cint::G__CallFunc::SetArg(int)' and `void Cint::G__CallFunc::SetArg(int)' cannot be overloaded
>>> ../inc/CallFunc.h:88: error: `G__int64' has not been declared
>>> ../inc/CallFunc.h:88: error: ISO C++ forbids declaration of `ll' with no type
>>> ../inc/CallFunc.h:89: error: `G__uint64' has not been declared
>>> ../inc/CallFunc.h:89: error: ISO C++ forbids declaration of `ull' with no type
>>> ../inc/CallFunc.h:89: error: `void Cint::G__CallFunc::SetArgRef(int&)' and `void Cint::G__CallFunc::SetArgRef(int&)' cannot be overloaded
>>> ../inc/CallFunc.h:99: error: `G__int64' does not name a type
>>> make[1]: *** [v6_random.o] Error 1
>>> make[1]: Leaving directory `/home/pburra/cint/src'
>>> make: *** [libcint.dll] Error 2
>>>
>>>
>>>           __________________________________________________________
>>> Not happy with your email address?.
>>> Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
>>>
>>          __________________________________________________________
>> Not happy with your email address?.
>> Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
>>
>>


Re: Compiling CINT on MINGW:Errors:

by Dr. Prasad, B.V.L.S. :: Rate this Message:

| View Threaded | Show Only this Message

Hi,


The way you suggested - putting the extern const char* ...... in brackets worked.

I tried removing the extern in front of the declaration - that too worked.


But I will go with your Brackets suggestion.


Now, mostly the last problem:

it is not finding the the -ldl library ????
*********************************************************************************************************
$ mingw32-make.exe
tool/rmkdepend/rmkdepend.exe -R -fcint/src/newlink.d -Y -w 1000 -- -O2   -mno-cy
gwin -DG__GNUREADLINE -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKE
INFO -Icint/inc -Icint/src -Ireflex/inc -DG__CINTBODY -DREFLEX_CINT_MERGE -DInte
rnal=I -D__cplusplus -- cint/src/newlink.cxx
g++  -O2   -mno-cygwin -DG__GNUREADLINE -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_
CONFIG -DG__NOMAKEINFO -Icint/inc -Icint/src -Ireflex/inc -DG__CINTBODY -DREFLEX
_CINT_MERGE -DInternal=I -c cint/src/newlink.cxx -o cint/src/newlink.o
g++  -O2  -Wl,--enable-auto-import -o bin/cint_tmp.exe \
  cint/main/G__setup.o cint/main/cppmain.o cint/src/Api.o cint/src/Class.o cint/
src/BaseCls.o cint/src/Type.o cint/src/DataMbr.o cint/src/Method.o cint/src/Meth
odAr.o cint/src/CallFunc.o cint/src/Typedf.o cint/src/Token.o cint/src/Shadow.o
cint/src/bc_autoobj.o cint/src/bc_cfunc.o cint/src/bc_inst.o cint/src/bc_item.o
cint/src/bc_parse.o cint/src/bc_reader.o cint/src/bc_type.o cint/src/bc_exec.o c
int/src/bc_vtbl.o cint/src/bc_debug.o cint/src/bc_assign.o cint/src/dict/gcc4str
m.o cint/src/rflx_gendict.o cint/src/rflx_gensrc.o cint/src/rflx_tools.o cint/sr
c/gcoll.o cint/src/quote.o cint/src/init.o cint/src/global2.o cint/src/malloc.o
cint/src/parse.o cint/src/debug.o cint/src/sizeof.o cint/src/error.o cint/src/in
put.o cint/src/FastAllocString.o cint/src/pcode.o cint/src/inherit.o cint/src/tm
plt.o cint/src/expr.o cint/src/stub.o cint/src/random.o cint/src/newlink.o cint/
src/func.o cint/src/fread.o cint/src/pause.o cint/src/cast.o cint/src/disp.o cin
t/src/shl.o cint/src/dump.o cint/src/value.o cint/src/memtest.o cint/src/ifunc.o
 cint/src/scrupto.o cint/src/macro.o cint/src/decl.o cint/src/auxu.o cint/src/in
trpt.o cint/src/new.o cint/src/struct.o cint/src/global1.o cint/src/opr.o cint/s
rc/var.o cint/src/Typedef.o cint/src/end.o cint/src/val2a.o cint/src/g__cfunc.o
cint/src/dict/stdstrct.o cint/src/dict/longif3.o cint/src/pragma_tmp.o cint/src/
loadfile_tmp.o  \
  /mingw/lib/libreadline.a  -lm -ldl
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin
d -ldl
collect2: ld returned 1 exit status
mingw32-make: *** [bin/cint_tmp.exe] Error 1
*******************************************************************************************************************

 



----- Original Message -----
From: Philippe Canal <pcanal@...>
To: "Dr. Prasad, B.V.L.S." <burrashiva@...>
Cc: Axel Naumann <Axel.Naumann@...>; "cint@..." <cint@...>
Sent: Wednesday, 8 February 2012, 8:56
Subject: Re: [CINT] Compiling CINT on MINGW:Errors:

Hi,

Does using:

extern "C" {
    extern const char *G__libname;
}

work better? (this windows section is likely to be required also for ming as it is related
to the way the file system behave).

Cheers,
Philippe.


On 2/7/12 9:19 PM, Dr. Prasad, B.V.L.S. wrote:

>
> Hi,
> Great Pointer and when I added __MARKER_FOR_MINGW__ with __MINGW32__
> it worked.
> Now it is exiting at a different point with the following error:
> ****************************************************************************************************
> cint/src/newlink.cxx:81:1: error: invalid use of 'extern' in linkage specificati
> on
> mingw32-make: *** [cint/src/newlink.o] Error 1
> ***************************************************************************************************
>
> and code from newlink.cxx is:
>
> *********************************************
> #ifdef _WIN32
> #include "windows.h"
> #include<errno.h>
> extern "C"
> extern const char *G__libname;
>
> FILE *FOpenAndSleep(const char *filename, const char *mode) {
>     int tries=0;
>     FILE *ret=0;
>     while (!ret&&  ++tries<51)
>        if (!(ret=fopen(filename, mode))&&  tries<50)
>           if (errno!=EACCES&&  errno!=EEXIST) return 0;
>           else Sleep(200);
>     if (tries>1)  printf("fopen slept for %g seconds until it succeeeded.\n", (tr
> ies-1)/5.);
>     return ret;
> }
>
> # ifdef fopen
> #  undef fopen
> # endif
> # define fopen(A,B) FOpenAndSleep((A),(B))
> #endif
> ******************************************************************************
>
> is this also related to specifying a MINGW32 directive ?
> Please guide me through.
> Thank you,
> Prasad.
>

>
>
>
>
> ----- Original Message -----
> From: Philippe Canal<pcanal@...>
> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
> Cc: Axel Naumann<Axel.Naumann@...>; "cint@..."<cint@...>
> Sent: Tuesday, 7 February 2012, 21:57
> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>
> Hi Prasad,
>
> We need to replace the line:
>
>       #if defined(G__WIN32)&&  !defined(__CINT__)
>
> with something like
>
>      #if defined(G__WIN32)&&   !defined(__CINT__)&&   !defined(__MARKER_FOR_MINGW__)
>
> where the 'missing' piece of information is which symbol
> to use instead of  __MARKER_FOR_MINGW__.
>
> Thanks,
> Philippe.
>
>
>
> On 2/6/12 9:35 PM, Dr. Prasad, B.V.L.S. wrote:
>> Hi,
>>
>> Long time back, back in 2008, I was trying to port cint5.18.00 to mingw when I posted a query showing the error.
>> The reason for this email is: I would like to resolve this error by my self.
>>
>> any pointers / explanation of the problem will definitely put me on the track of resolving this error.
>>
>> I think I am more comfortable in fixing the bugs when compared to 2008.
>>
>> The error:
>>> In file included from ../inc/Api.h:25,
>>>                      from v6_random.cxx:27:
>>> ../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 v6_random.cxx:27:
>> The corresponding code in the G__ci.h from CINT/src is:
>> /***********************************************************************
>>     * Native long long support
>>     ***********************************************************************/
>> #if defined(G__WIN32)&&   !defined(__CINT__)
>> typedef __int64            G__int64;
>> typedef unsigned __int64   G__uint64;
>> #else
>> typedef long long          G__int64;
>> typedef unsigned long long G__uint64;
>> #endif
>>
>> Definitely the typedef is the problem.
>> Once this is fixed all others should fall in place for mingw.
>> This code works very clean on a Linux system.
>> My goal is to make this work on mingw.
>>
>> What can I do to help fix this bug.??
>>
>> Thank you,
>> Looking forward to your help.
>>
>> Prasad.
>>
>>
>>
>>
>>
>>
>> ----- Original Message -----
>> From: "Dr. Prasad, B.V.L.S."<burrashiva@...>
>> To: Axel Naumann<Axel.Naumann@...>
>> Cc:
>> Sent: Thursday, 3 July 2008, 6:47
>> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>>
>> thank you very much.
>> Prasad.
>>
>> Dr. Prasad, B.V.L.S.
>> MD&   CTO,
>> Helix Genomics Pvt. Ltd.
>> ***************************************************************
>> As You Progress, There is Some More to Progress - shiva.
>> ***************************************************************
>>
>>
>>
>> ----- Original Message ----
>> From: Axel Naumann<Axel.Naumann@...>
>> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
>> Cc: cint@...
>> Sent: Wednesday, 2 July, 2008 11:04:30 AM
>> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>>
>> Hi,
>>
>> I will try to fix this during the next few days. I will come back to you
>> once it's fixed.
>>
>> Cheers, Axel.
>>
>> On 2008-07-01 01:02, Dr. Prasad, B.V.L.S. wrote:
>>> I installed readline5.2 and ran the configure script>>>./configure --arch=mingw --readline=../readline-5.2
>>> then used make: I am getting following errors, can some one help ?
>>> Thank you,
>>> $ make
>>> make -C src
>>> make[1]: Entering directory `/home/pburra/cint/src'
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_debug.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_decl.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_disp.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_dump.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_end.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_error.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_expr.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_fread.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_func.cxx
>>> v6_func.cxx: In function `int G__library_func(G__value*, char*, G__param*, int)':
>>> v6_func.cxx:3864: warning: passing NULL used for non-pointer converting 3 of `void G__letint(G__value*, int, long int)'
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_gcoll.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_global1.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_global2.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_ifunc.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_inherit.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_init.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_input.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_intrpt.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_loadfile.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_macro.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_malloc.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_memtest.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_new.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_newlink.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_oldlink.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_opr.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_parse.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pause.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pcode.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pragma.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_quote.cxx
>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_random.cxx
>>> In file included from ../inc/Api.h:25,
>>>                      from v6_random.cxx:27:
>>> ../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 v6_random.cxx:27:
>>> ../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:1876: error: `G__int64' has not been declared
>>> ../inc/G__ci.h:1876: error: ISO C++ forbids declaration of `value' with no type
>>> ../inc/G__ci.h:1877: error: `G__uint64' has not been declared
>>> ../inc/G__ci.h:1877: error: ISO C++ forbids declaration of `value' with no type
>>> ../inc/G__ci.h:1879: error: `G__int64' does not name a type
>>> ../inc/G__ci.h:1880: error: `G__uint64' does not name a type
>>> ../inc/G__ci.h:1882: error: expected initializer before '*' token
>>> ../inc/G__ci.h:1883: error: expected initializer before '*' token
>>> ../inc/G__ci.h:2487: error: `G__int64' does not name a type
>>> ../inc/G__ci.h:2488: error: `G__uint64' does not name a type
>>> In file included from ../inc/Api.h:44,
>>>                      from v6_random.cxx:27:
>>> ../inc/CallFunc.h:85: error: `G__int64' has not been declared
>>> ../inc/CallFunc.h:85: error: ISO C++ forbids declaration of `ll' with no type
>>> ../inc/CallFunc.h:86: error: `G__uint64' has not been declared
>>> ../inc/CallFunc.h:86: error: ISO C++ forbids declaration of `ull' with no type
>>> ../inc/CallFunc.h:86: error: `void Cint::G__CallFunc::SetArg(int)' and `void Cint::G__CallFunc::SetArg(int)' cannot be overloaded
>>> ../inc/CallFunc.h:88: error: `G__int64' has not been declared
>>> ../inc/CallFunc.h:88: error: ISO C++ forbids declaration of `ll' with no type
>>> ../inc/CallFunc.h:89: error: `G__uint64' has not been declared
>>> ../inc/CallFunc.h:89: error: ISO C++ forbids declaration of `ull' with no type
>>> ../inc/CallFunc.h:89: error: `void Cint::G__CallFunc::SetArgRef(int&)' and `void Cint::G__CallFunc::SetArgRef(int&)' cannot be overloaded
>>> ../inc/CallFunc.h:99: error: `G__int64' does not name a type
>>> make[1]: *** [v6_random.o] Error 1
>>> make[1]: Leaving directory `/home/pburra/cint/src'
>>> make: *** [libcint.dll] Error 2
>>>
>>>
>>>           __________________________________________________________
>>> Not happy with your email address?.
>>> Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
>>>
>>          __________________________________________________________
>> Not happy with your email address?.
>> Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
>>
>>


Re: Compiling CINT on MINGW:Errors:

by Philippe Canal :: Rate this Message:

| View Threaded | Show Only this Message

Hi,

Try to see if it links without the -ldl (which is supposed to bring in the library
implementing dlopen and dlclose).

Cheers,
Philippe.

On 2/7/12 9:34 PM, Dr. Prasad, B.V.L.S. wrote:

> Hi,
>
>
> The way you suggested - putting the extern const char* ...... in brackets worked.
>
> I tried removing the extern in front of the declaration - that too worked.
>
>
> But I will go with your Brackets suggestion.
>
>
> Now, mostly the last problem:
>
> it is not finding the the -ldl library ????
> *********************************************************************************************************
> $ mingw32-make.exe
> tool/rmkdepend/rmkdepend.exe -R -fcint/src/newlink.d -Y -w 1000 -- -O2   -mno-cy
> gwin -DG__GNUREADLINE -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKE
> INFO -Icint/inc -Icint/src -Ireflex/inc -DG__CINTBODY -DREFLEX_CINT_MERGE -DInte
> rnal=I -D__cplusplus -- cint/src/newlink.cxx
> g++  -O2   -mno-cygwin -DG__GNUREADLINE -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_
> CONFIG -DG__NOMAKEINFO -Icint/inc -Icint/src -Ireflex/inc -DG__CINTBODY -DREFLEX
> _CINT_MERGE -DInternal=I -c cint/src/newlink.cxx -o cint/src/newlink.o
> g++  -O2  -Wl,--enable-auto-import -o bin/cint_tmp.exe \
>    cint/main/G__setup.o cint/main/cppmain.o cint/src/Api.o cint/src/Class.o cint/
> src/BaseCls.o cint/src/Type.o cint/src/DataMbr.o cint/src/Method.o cint/src/Meth
> odAr.o cint/src/CallFunc.o cint/src/Typedf.o cint/src/Token.o cint/src/Shadow.o
> cint/src/bc_autoobj.o cint/src/bc_cfunc.o cint/src/bc_inst.o cint/src/bc_item.o
> cint/src/bc_parse.o cint/src/bc_reader.o cint/src/bc_type.o cint/src/bc_exec.o c
> int/src/bc_vtbl.o cint/src/bc_debug.o cint/src/bc_assign.o cint/src/dict/gcc4str
> m.o cint/src/rflx_gendict.o cint/src/rflx_gensrc.o cint/src/rflx_tools.o cint/sr
> c/gcoll.o cint/src/quote.o cint/src/init.o cint/src/global2.o cint/src/malloc.o
> cint/src/parse.o cint/src/debug.o cint/src/sizeof.o cint/src/error.o cint/src/in
> put.o cint/src/FastAllocString.o cint/src/pcode.o cint/src/inherit.o cint/src/tm
> plt.o cint/src/expr.o cint/src/stub.o cint/src/random.o cint/src/newlink.o cint/
> src/func.o cint/src/fread.o cint/src/pause.o cint/src/cast.o cint/src/disp.o cin
> t/src/shl.o cint/src/dump.o cint/src/value.o cint/src/memtest.o cint/src/ifunc.o
>   cint/src/scrupto.o cint/src/macro.o cint/src/decl.o cint/src/auxu.o cint/src/in
> trpt.o cint/src/new.o cint/src/struct.o cint/src/global1.o cint/src/opr.o cint/s
> rc/var.o cint/src/Typedef.o cint/src/end.o cint/src/val2a.o cint/src/g__cfunc.o
> cint/src/dict/stdstrct.o cint/src/dict/longif3.o cint/src/pragma_tmp.o cint/src/
> loadfile_tmp.o  \
>    /mingw/lib/libreadline.a  -lm -ldl
> c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin
> d -ldl
> collect2: ld returned 1 exit status
> mingw32-make: *** [bin/cint_tmp.exe] Error 1
> *******************************************************************************************************************
>
>  
>
>
>
> ----- Original Message -----
> From: Philippe Canal<pcanal@...>
> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
> Cc: Axel Naumann<Axel.Naumann@...>; "cint@..."<cint@...>
> Sent: Wednesday, 8 February 2012, 8:56
> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>
> Hi,
>
> Does using:
>
> extern "C" {
>      extern const char *G__libname;
> }
>
> work better? (this windows section is likely to be required also for ming as it is related
> to the way the file system behave).
>
> Cheers,
> Philippe.
>
>
> On 2/7/12 9:19 PM, Dr. Prasad, B.V.L.S. wrote:
>> Hi,
>> Great Pointer and when I added __MARKER_FOR_MINGW__ with __MINGW32__
>> it worked.
>> Now it is exiting at a different point with the following error:
>> ****************************************************************************************************
>> cint/src/newlink.cxx:81:1: error: invalid use of 'extern' in linkage specificati
>> on
>> mingw32-make: *** [cint/src/newlink.o] Error 1
>> ***************************************************************************************************
>>
>> and code from newlink.cxx is:
>>
>> *********************************************
>> #ifdef _WIN32
>> #include "windows.h"
>> #include<errno.h>
>> extern "C"
>> extern const char *G__libname;
>>
>> FILE *FOpenAndSleep(const char *filename, const char *mode) {
>>       int tries=0;
>>       FILE *ret=0;
>>       while (!ret&&   ++tries<51)
>>          if (!(ret=fopen(filename, mode))&&   tries<50)
>>             if (errno!=EACCES&&   errno!=EEXIST) return 0;
>>             else Sleep(200);
>>       if (tries>1)  printf("fopen slept for %g seconds until it succeeeded.\n", (tr
>> ies-1)/5.);
>>       return ret;
>> }
>>
>> # ifdef fopen
>> #  undef fopen
>> # endif
>> # define fopen(A,B) FOpenAndSleep((A),(B))
>> #endif
>> ******************************************************************************
>>
>> is this also related to specifying a MINGW32 directive ?
>> Please guide me through.
>> Thank you,
>> Prasad.
>>
>>  
>>
>>
>>
>>
>> ----- Original Message -----
>> From: Philippe Canal<pcanal@...>
>> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
>> Cc: Axel Naumann<Axel.Naumann@...>; "cint@..."<cint@...>
>> Sent: Tuesday, 7 February 2012, 21:57
>> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>>
>> Hi Prasad,
>>
>> We need to replace the line:
>>
>>         #if defined(G__WIN32)&&   !defined(__CINT__)
>>
>> with something like
>>
>>        #if defined(G__WIN32)&&    !defined(__CINT__)&&    !defined(__MARKER_FOR_MINGW__)
>>
>> where the 'missing' piece of information is which symbol
>> to use instead of  __MARKER_FOR_MINGW__.
>>
>> Thanks,
>> Philippe.
>>
>>
>>
>> On 2/6/12 9:35 PM, Dr. Prasad, B.V.L.S. wrote:
>>> Hi,
>>>
>>> Long time back, back in 2008, I was trying to port cint5.18.00 to mingw when I posted a query showing the error.
>>> The reason for this email is: I would like to resolve this error by my self.
>>>
>>> any pointers / explanation of the problem will definitely put me on the track of resolving this error.
>>>
>>> I think I am more comfortable in fixing the bugs when compared to 2008.
>>>
>>> The error:
>>>> In file included from ../inc/Api.h:25,
>>>>                        from v6_random.cxx:27:
>>>> ../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 v6_random.cxx:27:
>>> The corresponding code in the G__ci.h from CINT/src is:
>>> /***********************************************************************
>>>       * Native long long support
>>>       ***********************************************************************/
>>> #if defined(G__WIN32)&&    !defined(__CINT__)
>>> typedef __int64            G__int64;
>>> typedef unsigned __int64   G__uint64;
>>> #else
>>> typedef long long          G__int64;
>>> typedef unsigned long long G__uint64;
>>> #endif
>>>
>>> Definitely the typedef is the problem.
>>> Once this is fixed all others should fall in place for mingw.
>>> This code works very clean on a Linux system.
>>> My goal is to make this work on mingw.
>>>
>>> What can I do to help fix this bug.??
>>>
>>> Thank you,
>>> Looking forward to your help.
>>>
>>> Prasad.
>>>
>>>
>>>
>>>
>>>
>>>
>>> ----- Original Message -----
>>> From: "Dr. Prasad, B.V.L.S."<burrashiva@...>
>>> To: Axel Naumann<Axel.Naumann@...>
>>> Cc:
>>> Sent: Thursday, 3 July 2008, 6:47
>>> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>>>
>>> thank you very much.
>>> Prasad.
>>>
>>> Dr. Prasad, B.V.L.S.
>>> MD&    CTO,
>>> Helix Genomics Pvt. Ltd.
>>> ***************************************************************
>>> As You Progress, There is Some More to Progress - shiva.
>>> ***************************************************************
>>>
>>>
>>>
>>> ----- Original Message ----
>>> From: Axel Naumann<Axel.Naumann@...>
>>> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
>>> Cc: cint@...
>>> Sent: Wednesday, 2 July, 2008 11:04:30 AM
>>> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>>>
>>> Hi,
>>>
>>> I will try to fix this during the next few days. I will come back to you
>>> once it's fixed.
>>>
>>> Cheers, Axel.
>>>
>>> On 2008-07-01 01:02, Dr. Prasad, B.V.L.S. wrote:
>>>> I installed readline5.2 and ran the configure script>>>./configure --arch=mingw --readline=../readline-5.2
>>>> then used make: I am getting following errors, can some one help ?
>>>> Thank you,
>>>> $ make
>>>> make -C src
>>>> make[1]: Entering directory `/home/pburra/cint/src'
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_debug.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_decl.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_disp.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_dump.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_end.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_error.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_expr.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_fread.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_func.cxx
>>>> v6_func.cxx: In function `int G__library_func(G__value*, char*, G__param*, int)':
>>>> v6_func.cxx:3864: warning: passing NULL used for non-pointer converting 3 of `void G__letint(G__value*, int, long int)'
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_gcoll.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_global1.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_global2.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_ifunc.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_inherit.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_init.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_input.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_intrpt.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_loadfile.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_macro.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_malloc.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_memtest.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_new.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_newlink.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_oldlink.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_opr.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_parse.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pause.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pcode.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pragma.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_quote.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_random.cxx
>>>> In file included from ../inc/Api.h:25,
>>>>                        from v6_random.cxx:27:
>>>> ../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 v6_random.cxx:27:
>>>> ../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:1876: error: `G__int64' has not been declared
>>>> ../inc/G__ci.h:1876: error: ISO C++ forbids declaration of `value' with no type
>>>> ../inc/G__ci.h:1877: error: `G__uint64' has not been declared
>>>> ../inc/G__ci.h:1877: error: ISO C++ forbids declaration of `value' with no type
>>>> ../inc/G__ci.h:1879: error: `G__int64' does not name a type
>>>> ../inc/G__ci.h:1880: error: `G__uint64' does not name a type
>>>> ../inc/G__ci.h:1882: error: expected initializer before '*' token
>>>> ../inc/G__ci.h:1883: error: expected initializer before '*' token
>>>> ../inc/G__ci.h:2487: error: `G__int64' does not name a type
>>>> ../inc/G__ci.h:2488: error: `G__uint64' does not name a type
>>>> In file included from ../inc/Api.h:44,
>>>>                        from v6_random.cxx:27:
>>>> ../inc/CallFunc.h:85: error: `G__int64' has not been declared
>>>> ../inc/CallFunc.h:85: error: ISO C++ forbids declaration of `ll' with no type
>>>> ../inc/CallFunc.h:86: error: `G__uint64' has not been declared
>>>> ../inc/CallFunc.h:86: error: ISO C++ forbids declaration of `ull' with no type
>>>> ../inc/CallFunc.h:86: error: `void Cint::G__CallFunc::SetArg(int)' and `void Cint::G__CallFunc::SetArg(int)' cannot be overloaded
>>>> ../inc/CallFunc.h:88: error: `G__int64' has not been declared
>>>> ../inc/CallFunc.h:88: error: ISO C++ forbids declaration of `ll' with no type
>>>> ../inc/CallFunc.h:89: error: `G__uint64' has not been declared
>>>> ../inc/CallFunc.h:89: error: ISO C++ forbids declaration of `ull' with no type
>>>> ../inc/CallFunc.h:89: error: `void Cint::G__CallFunc::SetArgRef(int&)' and `void Cint::G__CallFunc::SetArgRef(int&)' cannot be overloaded
>>>> ../inc/CallFunc.h:99: error: `G__int64' does not name a type
>>>> make[1]: *** [v6_random.o] Error 1
>>>> make[1]: Leaving directory `/home/pburra/cint/src'
>>>> make: *** [libcint.dll] Error 2
>>>>
>>>>
>>>>             __________________________________________________________
>>>> Not happy with your email address?.
>>>> Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
>>>>
>>>            __________________________________________________________
>>> Not happy with your email address?.
>>> Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
>>>
>>>


Re: Compiling CINT on MINGW:Errors:

by Dr. Prasad, B.V.L.S. :: Rate this Message:

| View Threaded | Show Only this Message

Hi,
I searched google and got the libdl.a file. Put that in the mingw/lib directory and it worked.
Now with another problem:

  /mingw/lib/libreadline.a  -lm -ldl
/mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x1f72): undefined refere
nce to `lstat64'
/mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x20bf): undefined refere
nce to `stat64'
/mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x2135): undefined refere
nce to `lstat64'
/mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x21d7): undefined refere
nce to `stat64'
/mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x231a): undefined refere
nce to `stat64'
/mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x236a): undefined refere
nce to `stat64'
/mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x23cf): undefined refere
nce to `lstat64'
/mingw/lib/libreadline.a(bind.o):bind.c:(.text+0x3b9a): undefined reference to `
stat64'
/mingw/lib/libreadline.a(parens.o):parens.c:(.text+0xf9): undefined reference to
 `select@20'
collect2: ld returned 1 exit status
mingw32-make: *** [bin/cint_tmp.exe] Error 1

******************************************************
currently working on why it is complaining UNDEFINED REFERENCE to lstat64 ?
any pointer ?? pl. let me know.
will try your suggestion on libdl.
further as per search, libtool is a better option over libdl - which is not currently relevant but still wanted to leave it for record.

regards,
Prasad.





----- Original Message -----
From: Philippe Canal <pcanal@...>
To: "Dr. Prasad, B.V.L.S." <burrashiva@...>
Cc: Axel Naumann <Axel.Naumann@...>; "cint@..." <cint@...>
Sent: Wednesday, 8 February 2012, 9:16
Subject: Re: [CINT] Compiling CINT on MINGW:Errors:

Hi,

Try to see if it links without the -ldl (which is supposed to bring in the library
implementing dlopen and dlclose).

Cheers,
Philippe.

On 2/7/12 9:34 PM, Dr. Prasad, B.V.L.S. wrote:

> Hi,
>
>
> The way you suggested - putting the extern const char* ...... in brackets worked.
>
> I tried removing the extern in front of the declaration - that too worked.
>
>
> But I will go with your Brackets suggestion.
>
>
> Now, mostly the last problem:
>
> it is not finding the the -ldl library ????
> *********************************************************************************************************
> $ mingw32-make.exe
> tool/rmkdepend/rmkdepend.exe -R -fcint/src/newlink.d -Y -w 1000 -- -O2   -mno-cy
> gwin -DG__GNUREADLINE -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKE
> INFO -Icint/inc -Icint/src -Ireflex/inc -DG__CINTBODY -DREFLEX_CINT_MERGE -DInte
> rnal=I -D__cplusplus -- cint/src/newlink.cxx
> g++  -O2   -mno-cygwin -DG__GNUREADLINE -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_
> CONFIG -DG__NOMAKEINFO -Icint/inc -Icint/src -Ireflex/inc -DG__CINTBODY -DREFLEX
> _CINT_MERGE -DInternal=I -c cint/src/newlink.cxx -o cint/src/newlink.o
> g++  -O2  -Wl,--enable-auto-import -o bin/cint_tmp.exe \
>    cint/main/G__setup.o cint/main/cppmain.o cint/src/Api.o cint/src/Class.o cint/
> src/BaseCls.o cint/src/Type.o cint/src/DataMbr.o cint/src/Method.o cint/src/Meth
> odAr.o cint/src/CallFunc.o cint/src/Typedf.o cint/src/Token.o cint/src/Shadow.o
> cint/src/bc_autoobj.o cint/src/bc_cfunc.o cint/src/bc_inst.o cint/src/bc_item.o
> cint/src/bc_parse.o cint/src/bc_reader.o cint/src/bc_type.o cint/src/bc_exec.o c
> int/src/bc_vtbl.o cint/src/bc_debug.o cint/src/bc_assign.o cint/src/dict/gcc4str
> m.o cint/src/rflx_gendict.o cint/src/rflx_gensrc.o cint/src/rflx_tools.o cint/sr
> c/gcoll.o cint/src/quote.o cint/src/init.o cint/src/global2.o cint/src/malloc.o
> cint/src/parse.o cint/src/debug.o cint/src/sizeof.o cint/src/error.o cint/src/in
> put.o cint/src/FastAllocString.o cint/src/pcode.o cint/src/inherit.o cint/src/tm
> plt.o cint/src/expr.o cint/src/stub.o cint/src/random.o cint/src/newlink.o cint/
> src/func.o cint/src/fread.o cint/src/pause.o cint/src/cast.o cint/src/disp.o cin
> t/src/shl.o cint/src/dump.o cint/src/value.o cint/src/memtest.o cint/src/ifunc.o
>   cint/src/scrupto.o cint/src/macro.o cint/src/decl.o cint/src/auxu.o cint/src/in
> trpt.o cint/src/new.o cint/src/struct.o cint/src/global1.o cint/src/opr.o cint/s
> rc/var.o cint/src/Typedef.o cint/src/end.o cint/src/val2a.o cint/src/g__cfunc.o
> cint/src/dict/stdstrct.o cint/src/dict/longif3.o cint/src/pragma_tmp.o cint/src/
> loadfile_tmp.o  \
>    /mingw/lib/libreadline.a  -lm -ldl
> c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin
> d -ldl
> collect2: ld returned 1 exit status
> mingw32-make: *** [bin/cint_tmp.exe] Error 1
> *******************************************************************************************************************
>

>
>
>
> ----- Original Message -----
> From: Philippe Canal<pcanal@...>
> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
> Cc: Axel Naumann<Axel.Naumann@...>; "cint@..."<cint@...>
> Sent: Wednesday, 8 February 2012, 8:56
> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>
> Hi,
>
> Does using:
>
> extern "C" {
>      extern const char *G__libname;
> }
>
> work better? (this windows section is likely to be required also for ming as it is related
> to the way the file system behave).
>
> Cheers,
> Philippe.
>
>
> On 2/7/12 9:19 PM, Dr. Prasad, B.V.L.S. wrote:
>> Hi,
>> Great Pointer and when I added __MARKER_FOR_MINGW__ with __MINGW32__
>> it worked.
>> Now it is exiting at a different point with the following error:
>> ****************************************************************************************************
>> cint/src/newlink.cxx:81:1: error: invalid use of 'extern' in linkage specificati
>> on
>> mingw32-make: *** [cint/src/newlink.o] Error 1
>> ***************************************************************************************************
>>
>> and code from newlink.cxx is:
>>
>> *********************************************
>> #ifdef _WIN32
>> #include "windows.h"
>> #include<errno.h>
>> extern "C"
>> extern const char *G__libname;
>>
>> FILE *FOpenAndSleep(const char *filename, const char *mode) {
>>       int tries=0;
>>       FILE *ret=0;
>>       while (!ret&&   ++tries<51)
>>          if (!(ret=fopen(filename, mode))&&   tries<50)
>>             if (errno!=EACCES&&   errno!=EEXIST) return 0;
>>             else Sleep(200);
>>       if (tries>1)  printf("fopen slept for %g seconds until it succeeeded.\n", (tr
>> ies-1)/5.);
>>       return ret;
>> }
>>
>> # ifdef fopen
>> #  undef fopen
>> # endif
>> # define fopen(A,B) FOpenAndSleep((A),(B))
>> #endif
>> ******************************************************************************
>>
>> is this also related to specifying a MINGW32 directive ?
>> Please guide me through.
>> Thank you,
>> Prasad.
>>
>> 
>>
>>
>>
>>
>> ----- Original Message -----
>> From: Philippe Canal<pcanal@...>
>> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
>> Cc: Axel Naumann<Axel.Naumann@...>; "cint@..."<cint@...>
>> Sent: Tuesday, 7 February 2012, 21:57
>> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>>
>> Hi Prasad,
>>
>> We need to replace the line:
>>
>>         #if defined(G__WIN32)&&   !defined(__CINT__)
>>
>> with something like
>>
>>        #if defined(G__WIN32)&&    !defined(__CINT__)&&    !defined(__MARKER_FOR_MINGW__)
>>
>> where the 'missing' piece of information is which symbol
>> to use instead of  __MARKER_FOR_MINGW__.
>>
>> Thanks,
>> Philippe.
>>
>>
>>
>> On 2/6/12 9:35 PM, Dr. Prasad, B.V.L.S. wrote:
>>> Hi,
>>>
>>> Long time back, back in 2008, I was trying to port cint5.18.00 to mingw when I posted a query showing the error.
>>> The reason for this email is: I would like to resolve this error by my self.
>>>
>>> any pointers / explanation of the problem will definitely put me on the track of resolving this error.
>>>
>>> I think I am more comfortable in fixing the bugs when compared to 2008.
>>>
>>> The error:
>>>> In file included from ../inc/Api.h:25,
>>>>                        from v6_random.cxx:27:
>>>> ../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 v6_random.cxx:27:
>>> The corresponding code in the G__ci.h from CINT/src is:
>>> /***********************************************************************
>>>       * Native long long support
>>>       ***********************************************************************/
>>> #if defined(G__WIN32)&&    !defined(__CINT__)
>>> typedef __int64            G__int64;
>>> typedef unsigned __int64   G__uint64;
>>> #else
>>> typedef long long          G__int64;
>>> typedef unsigned long long G__uint64;
>>> #endif
>>>
>>> Definitely the typedef is the problem.
>>> Once this is fixed all others should fall in place for mingw.
>>> This code works very clean on a Linux system.
>>> My goal is to make this work on mingw.
>>>
>>> What can I do to help fix this bug.??
>>>
>>> Thank you,
>>> Looking forward to your help.
>>>
>>> Prasad.
>>>
>>>
>>>
>>>
>>>
>>>
>>> ----- Original Message -----
>>> From: "Dr. Prasad, B.V.L.S."<burrashiva@...>
>>> To: Axel Naumann<Axel.Naumann@...>
>>> Cc:
>>> Sent: Thursday, 3 July 2008, 6:47
>>> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>>>
>>> thank you very much.
>>> Prasad.
>>>
>>> Dr. Prasad, B.V.L.S.
>>> MD&    CTO,
>>> Helix Genomics Pvt. Ltd.
>>> ***************************************************************
>>> As You Progress, There is Some More to Progress - shiva.
>>> ***************************************************************
>>>
>>>
>>>
>>> ----- Original Message ----
>>> From: Axel Naumann<Axel.Naumann@...>
>>> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
>>> Cc: cint@...
>>> Sent: Wednesday, 2 July, 2008 11:04:30 AM
>>> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>>>
>>> Hi,
>>>
>>> I will try to fix this during the next few days. I will come back to you
>>> once it's fixed.
>>>
>>> Cheers, Axel.
>>>
>>> On 2008-07-01 01:02, Dr. Prasad, B.V.L.S. wrote:
>>>> I installed readline5.2 and ran the configure script>>>./configure --arch=mingw --readline=../readline-5.2
>>>> then used make: I am getting following errors, can some one help ?
>>>> Thank you,
>>>> $ make
>>>> make -C src
>>>> make[1]: Entering directory `/home/pburra/cint/src'
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_debug.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_decl.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_disp.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_dump.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_end.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_error.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_expr.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_fread.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_func.cxx
>>>> v6_func.cxx: In function `int G__library_func(G__value*, char*, G__param*, int)':
>>>> v6_func.cxx:3864: warning: passing NULL used for non-pointer converting 3 of `void G__letint(G__value*, int, long int)'
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_gcoll.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_global1.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_global2.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_ifunc.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_inherit.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_init.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_input.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_intrpt.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_loadfile.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_macro.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_malloc.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_memtest.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_new.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_newlink.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_oldlink.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_opr.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_parse.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pause.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pcode.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pragma.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_quote.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_random.cxx
>>>> In file included from ../inc/Api.h:25,
>>>>                        from v6_random.cxx:27:
>>>> ../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 v6_random.cxx:27:
>>>> ../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:1876: error: `G__int64' has not been declared
>>>> ../inc/G__ci.h:1876: error: ISO C++ forbids declaration of `value' with no type
>>>> ../inc/G__ci.h:1877: error: `G__uint64' has not been declared
>>>> ../inc/G__ci.h:1877: error: ISO C++ forbids declaration of `value' with no type
>>>> ../inc/G__ci.h:1879: error: `G__int64' does not name a type
>>>> ../inc/G__ci.h:1880: error: `G__uint64' does not name a type
>>>> ../inc/G__ci.h:1882: error: expected initializer before '*' token
>>>> ../inc/G__ci.h:1883: error: expected initializer before '*' token
>>>> ../inc/G__ci.h:2487: error: `G__int64' does not name a type
>>>> ../inc/G__ci.h:2488: error: `G__uint64' does not name a type
>>>> In file included from ../inc/Api.h:44,
>>>>                        from v6_random.cxx:27:
>>>> ../inc/CallFunc.h:85: error: `G__int64' has not been declared
>>>> ../inc/CallFunc.h:85: error: ISO C++ forbids declaration of `ll' with no type
>>>> ../inc/CallFunc.h:86: error: `G__uint64' has not been declared
>>>> ../inc/CallFunc.h:86: error: ISO C++ forbids declaration of `ull' with no type
>>>> ../inc/CallFunc.h:86: error: `void Cint::G__CallFunc::SetArg(int)' and `void Cint::G__CallFunc::SetArg(int)' cannot be overloaded
>>>> ../inc/CallFunc.h:88: error: `G__int64' has not been declared
>>>> ../inc/CallFunc.h:88: error: ISO C++ forbids declaration of `ll' with no type
>>>> ../inc/CallFunc.h:89: error: `G__uint64' has not been declared
>>>> ../inc/CallFunc.h:89: error: ISO C++ forbids declaration of `ull' with no type
>>>> ../inc/CallFunc.h:89: error: `void Cint::G__CallFunc::SetArgRef(int&)' and `void Cint::G__CallFunc::SetArgRef(int&)' cannot be overloaded
>>>> ../inc/CallFunc.h:99: error: `G__int64' does not name a type
>>>> make[1]: *** [v6_random.o] Error 1
>>>> make[1]: Leaving directory `/home/pburra/cint/src'
>>>> make: *** [libcint.dll] Error 2
>>>>
>>>>
>>>>             __________________________________________________________
>>>> Not happy with your email address?.
>>>> Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
>>>>
>>>            __________________________________________________________
>>> Not happy with your email address?.
>>> Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
>>>
>>>


Re: Compiling CINT on MINGW:Errors:

by Dr. Prasad, B.V.L.S. :: Rate this Message:

| View Threaded | Show Only this Message

I got a pointer for this error:  and the solution to this seems to be:


******************************************************************************************************************************************

must also link with libmsvcp60 and libgw32c, and these libraries must be after libreadline in the linking statement; so e.g.
LIBS = -lreadline -lmsvcp60 -lgw32c
******************************************************************************************************************************************

So, where exactly should I incorporate this LIBS instruction in the Makefile which doesnt have any LIB specifications?

thank you very much,

looking forward to hearing from you,

regards,

Prasad.





----- Original Message -----
From: "Dr. Prasad, B.V.L.S." <burrashiva@...>
To: Philippe Canal <pcanal@...>
Cc: Axel Naumann <Axel.Naumann@...>; "cint@..." <cint@...>
Sent: Wednesday, 8 February 2012, 9:30
Subject: Re: [CINT] Compiling CINT on MINGW:Errors:

Hi,
I searched google and got the libdl.a file. Put that in the mingw/lib directory and it worked.
Now with another problem:

  /mingw/lib/libreadline.a  -lm -ldl
/mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x1f72): undefined refere
nce to `lstat64'
/mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x20bf): undefined refere
nce to `stat64'
/mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x2135): undefined refere
nce to `lstat64'
/mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x21d7): undefined refere
nce to `stat64'
/mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x231a): undefined refere
nce to `stat64'
/mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x236a): undefined refere
nce to `stat64'
/mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x23cf): undefined refere
nce to `lstat64'
/mingw/lib/libreadline.a(bind.o):bind.c:(.text+0x3b9a): undefined reference to `
stat64'
/mingw/lib/libreadline.a(parens.o):parens.c:(.text+0xf9): undefined reference to
 `select@20'
collect2: ld returned 1 exit status
mingw32-make: *** [bin/cint_tmp.exe] Error 1

******************************************************
currently working on why it is complaining UNDEFINED REFERENCE to lstat64 ?
any pointer ?? pl. let me know.
will try your suggestion on libdl.
further as per search, libtool is a better option over libdl - which is not currently relevant but still wanted to leave it for record.

regards,
Prasad.





----- Original Message -----
From: Philippe Canal <pcanal@...>
To: "Dr. Prasad, B.V.L.S." <burrashiva@...>
Cc: Axel Naumann <Axel.Naumann@...>; "cint@..." <cint@...>
Sent: Wednesday, 8 February 2012, 9:16
Subject: Re: [CINT] Compiling CINT on MINGW:Errors:

Hi,

Try to see if it links without the -ldl (which is supposed to bring in the library
implementing dlopen and dlclose).

Cheers,
Philippe.

On 2/7/12 9:34 PM, Dr. Prasad, B.V.L.S. wrote:

> Hi,
>
>
> The way you suggested - putting the extern const char* ...... in brackets worked.
>
> I tried removing the extern in front of the declaration - that too worked.
>
>
> But I will go with your Brackets suggestion.
>
>
> Now, mostly the last problem:
>
> it is not finding the the -ldl library ????
> *********************************************************************************************************
> $ mingw32-make.exe
> tool/rmkdepend/rmkdepend.exe -R -fcint/src/newlink.d -Y -w 1000 -- -O2   -mno-cy
> gwin -DG__GNUREADLINE -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKE
> INFO -Icint/inc -Icint/src -Ireflex/inc -DG__CINTBODY -DREFLEX_CINT_MERGE -DInte
> rnal=I -D__cplusplus -- cint/src/newlink.cxx
> g++  -O2   -mno-cygwin -DG__GNUREADLINE -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_
> CONFIG -DG__NOMAKEINFO -Icint/inc -Icint/src -Ireflex/inc -DG__CINTBODY -DREFLEX
> _CINT_MERGE -DInternal=I -c cint/src/newlink.cxx -o cint/src/newlink.o
> g++  -O2  -Wl,--enable-auto-import -o bin/cint_tmp.exe \
>    cint/main/G__setup.o cint/main/cppmain.o cint/src/Api.o cint/src/Class.o cint/
> src/BaseCls.o cint/src/Type.o cint/src/DataMbr.o cint/src/Method.o cint/src/Meth
> odAr.o cint/src/CallFunc.o cint/src/Typedf.o cint/src/Token.o cint/src/Shadow.o
> cint/src/bc_autoobj.o cint/src/bc_cfunc.o cint/src/bc_inst.o cint/src/bc_item.o
> cint/src/bc_parse.o cint/src/bc_reader.o cint/src/bc_type.o cint/src/bc_exec.o c
> int/src/bc_vtbl.o cint/src/bc_debug.o cint/src/bc_assign.o cint/src/dict/gcc4str
> m.o cint/src/rflx_gendict.o cint/src/rflx_gensrc.o cint/src/rflx_tools.o cint/sr
> c/gcoll.o cint/src/quote.o cint/src/init.o cint/src/global2.o cint/src/malloc.o
> cint/src/parse.o cint/src/debug.o cint/src/sizeof.o cint/src/error.o cint/src/in
> put.o cint/src/FastAllocString.o cint/src/pcode.o cint/src/inherit.o cint/src/tm
> plt.o cint/src/expr.o cint/src/stub.o cint/src/random.o cint/src/newlink.o cint/
> src/func.o cint/src/fread.o cint/src/pause.o cint/src/cast.o cint/src/disp.o cin
> t/src/shl.o cint/src/dump.o cint/src/value.o cint/src/memtest.o cint/src/ifunc.o
>   cint/src/scrupto.o cint/src/macro.o cint/src/decl.o cint/src/auxu.o cint/src/in
> trpt.o cint/src/new.o cint/src/struct.o cint/src/global1.o cint/src/opr.o cint/s
> rc/var.o cint/src/Typedef.o cint/src/end.o cint/src/val2a.o cint/src/g__cfunc.o
> cint/src/dict/stdstrct.o cint/src/dict/longif3.o cint/src/pragma_tmp.o cint/src/
> loadfile_tmp.o  \
>    /mingw/lib/libreadline.a  -lm -ldl
> c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin
> d -ldl
> collect2: ld returned 1 exit status
> mingw32-make: *** [bin/cint_tmp.exe] Error 1
> *******************************************************************************************************************
>

>
>
>
> ----- Original Message -----
> From: Philippe Canal<pcanal@...>
> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
> Cc: Axel Naumann<Axel.Naumann@...>; "cint@..."<cint@...>
> Sent: Wednesday, 8 February 2012, 8:56
> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>
> Hi,
>
> Does using:
>
> extern "C" {
>      extern const char *G__libname;
> }
>
> work better? (this windows section is likely to be required also for ming as it is related
> to the way the file system behave).
>
> Cheers,
> Philippe.
>
>
> On 2/7/12 9:19 PM, Dr. Prasad, B.V.L.S. wrote:
>> Hi,
>> Great Pointer and when I added __MARKER_FOR_MINGW__ with __MINGW32__
>> it worked.
>> Now it is exiting at a different point with the following error:
>> ****************************************************************************************************
>> cint/src/newlink.cxx:81:1: error: invalid use of 'extern' in linkage specificati
>> on
>> mingw32-make: *** [cint/src/newlink.o] Error 1
>> ***************************************************************************************************
>>
>> and code from newlink.cxx is:
>>
>> *********************************************
>> #ifdef _WIN32
>> #include "windows.h"
>> #include<errno.h>
>> extern "C"
>> extern const char *G__libname;
>>
>> FILE *FOpenAndSleep(const char *filename, const char *mode) {
>>       int tries=0;
>>       FILE *ret=0;
>>       while (!ret&&   ++tries<51)
>>          if (!(ret=fopen(filename, mode))&&   tries<50)
>>             if (errno!=EACCES&&   errno!=EEXIST) return 0;
>>             else Sleep(200);
>>       if (tries>1)  printf("fopen slept for %g seconds until it succeeeded.\n", (tr
>> ies-1)/5.);
>>       return ret;
>> }
>>
>> # ifdef fopen
>> #  undef fopen
>> # endif
>> # define fopen(A,B) FOpenAndSleep((A),(B))
>> #endif
>> ******************************************************************************
>>
>> is this also related to specifying a MINGW32 directive ?
>> Please guide me through.
>> Thank you,
>> Prasad.
>>
>> 
>>
>>
>>
>>
>> ----- Original Message -----
>> From: Philippe Canal<pcanal@...>
>> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
>> Cc: Axel Naumann<Axel.Naumann@...>; "cint@..."<cint@...>
>> Sent: Tuesday, 7 February 2012, 21:57
>> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>>
>> Hi Prasad,
>>
>> We need to replace the line:
>>
>>         #if defined(G__WIN32)&&   !defined(__CINT__)
>>
>> with something like
>>
>>        #if defined(G__WIN32)&&    !defined(__CINT__)&&    !defined(__MARKER_FOR_MINGW__)
>>
>> where the 'missing' piece of information is which symbol
>> to use instead of  __MARKER_FOR_MINGW__.
>>
>> Thanks,
>> Philippe.
>>
>>
>>
>> On 2/6/12 9:35 PM, Dr. Prasad, B.V.L.S. wrote:
>>> Hi,
>>>
>>> Long time back, back in 2008, I was trying to port cint5.18.00 to mingw when I posted a query showing the error.
>>> The reason for this email is: I would like to resolve this error by my self.
>>>
>>> any pointers / explanation of the problem will definitely put me on the track of resolving this error.
>>>
>>> I think I am more comfortable in fixing the bugs when compared to 2008.
>>>
>>> The error:
>>>> In file included from ../inc/Api.h:25,
>>>>                        from v6_random.cxx:27:
>>>> ../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 v6_random.cxx:27:
>>> The corresponding code in the G__ci.h from CINT/src is:
>>> /***********************************************************************
>>>       * Native long long support
>>>       ***********************************************************************/
>>> #if defined(G__WIN32)&&    !defined(__CINT__)
>>> typedef __int64            G__int64;
>>> typedef unsigned __int64   G__uint64;
>>> #else
>>> typedef long long          G__int64;
>>> typedef unsigned long long G__uint64;
>>> #endif
>>>
>>> Definitely the typedef is the problem.
>>> Once this is fixed all others should fall in place for mingw.
>>> This code works very clean on a Linux system.
>>> My goal is to make this work on mingw.
>>>
>>> What can I do to help fix this bug.??
>>>
>>> Thank you,
>>> Looking forward to your help.
>>>
>>> Prasad.
>>>
>>>
>>>
>>>
>>>
>>>
>>> ----- Original Message -----
>>> From: "Dr. Prasad, B.V.L.S."<burrashiva@...>
>>> To: Axel Naumann<Axel.Naumann@...>
>>> Cc:
>>> Sent: Thursday, 3 July 2008, 6:47
>>> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>>>
>>> thank you very much.
>>> Prasad.
>>>
>>> Dr. Prasad, B.V.L.S.
>>> MD&    CTO,
>>> Helix Genomics Pvt. Ltd.
>>> ***************************************************************
>>> As You Progress, There is Some More to Progress - shiva.
>>> ***************************************************************
>>>
>>>
>>>
>>> ----- Original Message ----
>>> From: Axel Naumann<Axel.Naumann@...>
>>> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
>>> Cc: cint@...
>>> Sent: Wednesday, 2 July, 2008 11:04:30 AM
>>> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>>>
>>> Hi,
>>>
>>> I will try to fix this during the next few days. I will come back to you
>>> once it's fixed.
>>>
>>> Cheers, Axel.
>>>
>>> On 2008-07-01 01:02, Dr. Prasad, B.V.L.S. wrote:
>>>> I installed readline5.2 and ran the configure script>>>./configure --arch=mingw --readline=../readline-5.2
>>>> then used make: I am getting following errors, can some one help ?
>>>> Thank you,
>>>> $ make
>>>> make -C src
>>>> make[1]: Entering directory `/home/pburra/cint/src'
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_debug.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_decl.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_disp.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_dump.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_end.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_error.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_expr.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_fread.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_func.cxx
>>>> v6_func.cxx: In function `int G__library_func(G__value*, char*, G__param*, int)':
>>>> v6_func.cxx:3864: warning: passing NULL used for non-pointer converting 3 of `void G__letint(G__value*, int, long int)'
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_gcoll.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_global1.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_global2.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_ifunc.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_inherit.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_init.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_input.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_intrpt.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_loadfile.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_macro.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_malloc.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_memtest.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_new.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_newlink.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_oldlink.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_opr.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_parse.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pause.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pcode.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pragma.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_quote.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_random.cxx
>>>> In file included from ../inc/Api.h:25,
>>>>                        from v6_random.cxx:27:
>>>> ../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 v6_random.cxx:27:
>>>> ../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:1876: error: `G__int64' has not been declared
>>>> ../inc/G__ci.h:1876: error: ISO C++ forbids declaration of `value' with no type
>>>> ../inc/G__ci.h:1877: error: `G__uint64' has not been declared
>>>> ../inc/G__ci.h:1877: error: ISO C++ forbids declaration of `value' with no type
>>>> ../inc/G__ci.h:1879: error: `G__int64' does not name a type
>>>> ../inc/G__ci.h:1880: error: `G__uint64' does not name a type
>>>> ../inc/G__ci.h:1882: error: expected initializer before '*' token
>>>> ../inc/G__ci.h:1883: error: expected initializer before '*' token
>>>> ../inc/G__ci.h:2487: error: `G__int64' does not name a type
>>>> ../inc/G__ci.h:2488: error: `G__uint64' does not name a type
>>>> In file included from ../inc/Api.h:44,
>>>>                        from v6_random.cxx:27:
>>>> ../inc/CallFunc.h:85: error: `G__int64' has not been declared
>>>> ../inc/CallFunc.h:85: error: ISO C++ forbids declaration of `ll' with no type
>>>> ../inc/CallFunc.h:86: error: `G__uint64' has not been declared
>>>> ../inc/CallFunc.h:86: error: ISO C++ forbids declaration of `ull' with no type
>>>> ../inc/CallFunc.h:86: error: `void Cint::G__CallFunc::SetArg(int)' and `void Cint::G__CallFunc::SetArg(int)' cannot be overloaded
>>>> ../inc/CallFunc.h:88: error: `G__int64' has not been declared
>>>> ../inc/CallFunc.h:88: error: ISO C++ forbids declaration of `ll' with no type
>>>> ../inc/CallFunc.h:89: error: `G__uint64' has not been declared
>>>> ../inc/CallFunc.h:89: error: ISO C++ forbids declaration of `ull' with no type
>>>> ../inc/CallFunc.h:89: error: `void Cint::G__CallFunc::SetArgRef(int&)' and `void Cint::G__CallFunc::SetArgRef(int&)' cannot be overloaded
>>>> ../inc/CallFunc.h:99: error: `G__int64' does not name a type
>>>> make[1]: *** [v6_random.o] Error 1
>>>> make[1]: Leaving directory `/home/pburra/cint/src'
>>>> make: *** [libcint.dll] Error 2
>>>>
>>>>
>>>>             __________________________________________________________
>>>> Not happy with your email address?.
>>>> Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
>>>>
>>>            __________________________________________________________
>>> Not happy with your email address?.
>>> Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
>>>
>>>


Re: Compiling CINT on MINGW:Errors:

by Dr. Prasad, B.V.L.S. :: Rate this Message:

| View Threaded | Show Only this Message

Hi,


I think I made some progress (though crude way) - I would appreciate your help.


In the configure file I modified the line in config_unix_defaults function:

from

DEFAULTLIBS="-lm -ldl"
to

DEFAULTLIBS=" -lmsvcp60 -lgw32c -lole32 -luuid -lws2_32 -lm "


The problem with above modification is: this will no more work in Linux Systems. There should be a way to write in the Config files that

if there it is mingw/win32 please add the additional libraries mentioned above.


this finally created the CINT.exe. For record: what I learn from searching is: it is looking for some Symbols specific to windows OS and

most of the time referred in MSDN.


After this step: I could see the cint.exe, libCint.dll and and libCint_static.a in bin and lib directories of $PWD.


However, I donot know why it was not taking the path properly and was unable to link to libCint.dll because of which the makecint.exe
failed for the STLs.


Could you help where to look for fixing this problem ??
Here is the part output (error):

*******************************************************************************************************************************
(cd cint/lib/dll_stl; chmod a+x setup; PATH=../../../bin:../../../lib:$PATH LD_L
IBRARY_PATH=../../../lib:$LD_LIBRARY_PATH DYLD_LIBRARY_PATH=../../../lib:$DYLD_L
IBRARY_PATH ./setup)
##########################################################################
# makecint : interpreter-compiler for cint (Windows Mingw version)
# Copyright(c) 1995~2010 Masaharu Goto. Mailing list: cint@...
##########################################################################
Run 'make -f Makestr' to compile the object
make[1]: Entering directory `/usr/home/USER/cint-5.18.00/cint/lib/dll_stl'
C:/MinGW/msys/1.0/home/USER/cint-5.18.00/cint/lib/dll_stl/../../../bin/cint.exe
 -w2 -zstring -nG__cpp_string.cxx  -D__MAKECINT__ -DG__MAKECINT  -c-1 -A -IC:/Mi
nGW/msys/1.0/home/USER/cint-5.18.00/cint/inc  -DG__MINGW -DG__STD_EXCEPTION -DG_
_HAVE_CONFIG -DG__NOMAKEINFO  -Z0 str.h
Report: Unrecognized string ''#pragma ifndef G__TMPLTIOS''#pragma else''#pragma
endif'' ignored C:/MinGW/msys/1.0/home/USER/cint-5.18.00\cint\include\iosenum.h(
14)
g++  -IC:/MinGW/msys/1.0/home/USER/cint-5.18.00/cint/inc  -DG__MINGW -DG__STD_EX
CEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2   -mno-cygwin -DG__GNUREADLINE
-c G__cpp_string.cxx
g++   -shared --export-all-symbols -o string.dll   G__cpp_string.o  -L"C;C:\MinG
W\msys\1.0\home\USER\cint-5.18.00/lib" -lCint  -lmsvcp60 -lgw32c -lole32 -luuid
-lws2_32 -lm
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin
d -lCint
collect2: ld returned 1 exit status
make[1]: *** [string.dll] Error 1
make[1]: Leaving directory `/usr/home/USER/cint-5.18.00/cint/lib/dll_stl'
mv: cannot stat `string.dll': No such file or directory
##########################################################################
# makecint : interpreter-compiler for cint (Windows Mingw version)
# Copyright(c) 1995~2010 Masaharu Goto. Mailing list: cint@...
##########################################################################
Run 'make -f Makevec' to compile the object
make[1]: Entering directory `/usr/home/USER/cint-5.18.00/cint/lib/dll_stl'
C:/MinGW/msys/1.0/home/USER/cint-5.18.00/cint/lib/dll_stl/../../../bin/cint.exe
 -w2 -zvector -nG__cpp_vector.cxx  -D__MAKECINT__ -DG__MAKECINT  -c-1 -A -IC:/Mi
nGW/msys/1.0/home/USER/cint-5.18.00/cint/inc  -DG__MINGW -DG__STD_EXCEPTION -DG_
_HAVE_CONFIG -DG__NOMAKEINFO  -DG__NOALGORITHM -Z0 vec.h
Report: Unrecognized string ''#pragma ifndef G__TMPLTIOS''#pragma else''#pragma
endif'' ignored C:/MinGW/msys/1.0/home/USER/cint-5.18.00\cint\include\iosenum.h(
14)
g++  -IC:/MinGW/msys/1.0/home/USER/cint-5.18.00/cint/inc  -DG__MINGW -DG__STD_EX
CEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -DG__NOALGORITHM -O2   -mno-cygwin -DG
__GNUREADLINE    -c G__cpp_vector.cxx
g++   -shared --export-all-symbols -o vector.dll   G__cpp_vector.o  -L"C;C:\MinG
W\msys\1.0\home\USER\cint-5.18.00/lib" -lCint  -lmsvcp60 -lgw32c -lole32 -luuid
-lws2_32 -lm
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin
d -lCint
collect2: ld returned 1 exit status
make[1]: *** [vector.dll] Error 1
make[1]: Leaving directory `/usr/home/USER/cint-5.18.00/cint/lib/dll_stl'
mv: cannot stat `vector.dll': No such file or directory
##########################################################################
# makecint : interpreter-compiler for cint (Windows Mingw version)
# Copyright(c) 1995~2010 Masaharu Goto. Mailing list: cint@...
##########################################################################
Run 'make -f Makevecbool' to compile the object
make[1]: Entering directory `/usr/home/USER/cint-5.18.00/cint/lib/dll_stl'
C:/MinGW/msys/1.0/home/USER/cint-5.18.00/cint/lib/dll_stl/../../../bin/cint.exe
 -w2 -zvectorbool -nG__cpp_vectorbool.cxx  -D__MAKECINT__ -DG__MAKECINT  -c-1 -A
 -IC:/MinGW/msys/1.0/home/USER/cint-5.18.00/cint/inc  -DG__MINGW -DG__STD_EXCEPT
ION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -DG__NOALGORITHM -Z0 vecbool.h
g++  -IC:/MinGW/msys/1.0/home/USER/cint-5.18.00/cint/inc  -DG__MINGW -DG__STD_EX
CEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -DG__NOALGORITHM -O2   -mno-cygwin -DG
__GNUREADLINE    -c G__cpp_vectorbool.cxx
g++   -shared --export-all-symbols -o vectorbool.dll   G__cpp_vectorbool.o  -L"C
;C:\MinGW\msys\1.0\home\USER\cint-5.18.00/lib" -lCint  -lmsvcp60 -lgw32c -lole32
 -luuid -lws2_32 -lm
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin
d -lCint
collect2: ld returned 1 exit status
make[1]: *** [vectorbool.dll] Error 1
make[1]: Leaving directory `/usr/home/USER/cint-5.18.00/cint/lib/dll_stl'
mv: cannot stat `vectorbool.dll': No such file or directory
******************************************************************************************************







 
From: "Dr. Prasad, B.V.L.S." <burrashiva@...>
To: "Dr. Prasad, B.V.L.S." <burrashiva@...>; Philippe Canal <pcanal@...>
Cc: Axel Naumann <Axel.Naumann@...>; "cint@..." <cint@...>
Sent: Wednesday, 8 February 2012, 9:52
Subject: Re: [CINT] Compiling CINT on MINGW:Errors:

I got a pointer for this error:  and the solution to this seems to be:


******************************************************************************************************************************************

must also link with libmsvcp60 and libgw32c, and these libraries must be after libreadline in the linking statement; so e.g.
LIBS = -lreadline -lmsvcp60 -lgw32c
******************************************************************************************************************************************

So, where exactly should I incorporate this LIBS instruction in the Makefile which doesnt have any LIB specifications?

thank you very much,

looking forward to hearing from you,

regards,

Prasad.





----- Original Message -----
From: "Dr. Prasad, B.V.L.S." <burrashiva@...>
To: Philippe Canal <pcanal@...>
Cc: Axel Naumann <Axel.Naumann@...>; "cint@..." <cint@...>
Sent: Wednesday, 8 February 2012, 9:30
Subject: Re: [CINT] Compiling CINT on MINGW:Errors:

Hi,
I searched google and got the libdl.a file. Put that in the mingw/lib directory and it worked.
Now with another problem:

  /mingw/lib/libreadline.a  -lm -ldl
/mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x1f72): undefined refere
nce to `lstat64'
/mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x20bf): undefined refere
nce to `stat64'
/mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x2135): undefined refere
nce to `lstat64'
/mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x21d7): undefined refere
nce to `stat64'
/mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x231a): undefined refere
nce to `stat64'
/mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x236a): undefined refere
nce to `stat64'
/mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x23cf): undefined refere
nce to `lstat64'
/mingw/lib/libreadline.a(bind.o):bind.c:(.text+0x3b9a): undefined reference to `
stat64'
/mingw/lib/libreadline.a(parens.o):parens.c:(.text+0xf9): undefined reference to
 `select@20'
collect2: ld returned 1 exit status
mingw32-make: *** [bin/cint_tmp.exe] Error 1

******************************************************
currently working on why it is complaining UNDEFINED REFERENCE to lstat64 ?
any pointer ?? pl. let me know.
will try your suggestion on libdl.
further as per search, libtool is a better option over libdl - which is not currently relevant but still wanted to leave it for record.

regards,
Prasad.





----- Original Message -----
From: Philippe Canal <pcanal@...>
To: "Dr. Prasad, B.V.L.S." <burrashiva@...>
Cc: Axel Naumann <Axel.Naumann@...>; "cint@..." <cint@...>
Sent: Wednesday, 8 February 2012, 9:16
Subject: Re: [CINT] Compiling CINT on MINGW:Errors:

Hi,

Try to see if it links without the -ldl (which is supposed to bring in the library
implementing dlopen and dlclose).

Cheers,
Philippe.

On 2/7/12 9:34 PM, Dr. Prasad, B.V.L.S. wrote:

> Hi,
>
>
> The way you suggested - putting the extern const char* ...... in brackets worked.
>
> I tried removing the extern in front of the declaration - that too worked.
>
>
> But I will go with your Brackets suggestion.
>
>
> Now, mostly the last problem:
>
> it is not finding the the -ldl library ????
> *********************************************************************************************************
> $ mingw32-make.exe
> tool/rmkdepend/rmkdepend.exe -R -fcint/src/newlink.d -Y -w 1000 -- -O2   -mno-cy
> gwin -DG__GNUREADLINE -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKE
> INFO -Icint/inc -Icint/src -Ireflex/inc -DG__CINTBODY -DREFLEX_CINT_MERGE -DInte
> rnal=I -D__cplusplus -- cint/src/newlink.cxx
> g++  -O2   -mno-cygwin -DG__GNUREADLINE -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_
> CONFIG -DG__NOMAKEINFO -Icint/inc -Icint/src -Ireflex/inc -DG__CINTBODY -DREFLEX
> _CINT_MERGE -DInternal=I -c cint/src/newlink.cxx -o cint/src/newlink.o
> g++  -O2  -Wl,--enable-auto-import -o bin/cint_tmp.exe \
>    cint/main/G__setup.o cint/main/cppmain.o cint/src/Api.o cint/src/Class.o cint/
> src/BaseCls.o cint/src/Type.o cint/src/DataMbr.o cint/src/Method.o cint/src/Meth
> odAr.o cint/src/CallFunc.o cint/src/Typedf.o cint/src/Token.o cint/src/Shadow.o
> cint/src/bc_autoobj.o cint/src/bc_cfunc.o cint/src/bc_inst.o cint/src/bc_item.o
> cint/src/bc_parse.o cint/src/bc_reader.o cint/src/bc_type.o cint/src/bc_exec.o c
> int/src/bc_vtbl.o cint/src/bc_debug.o cint/src/bc_assign.o cint/src/dict/gcc4str
> m.o cint/src/rflx_gendict.o cint/src/rflx_gensrc.o cint/src/rflx_tools.o cint/sr
> c/gcoll.o cint/src/quote.o cint/src/init.o cint/src/global2.o cint/src/malloc.o
> cint/src/parse.o cint/src/debug.o cint/src/sizeof.o cint/src/error.o cint/src/in
> put.o cint/src/FastAllocString.o cint/src/pcode.o cint/src/inherit.o cint/src/tm
> plt.o cint/src/expr.o cint/src/stub.o cint/src/random.o cint/src/newlink.o cint/
> src/func.o cint/src/fread.o cint/src/pause.o cint/src/cast.o cint/src/disp.o cin
> t/src/shl.o cint/src/dump.o cint/src/value.o cint/src/memtest.o cint/src/ifunc.o
>   cint/src/scrupto.o cint/src/macro.o cint/src/decl.o cint/src/auxu.o cint/src/in
> trpt.o cint/src/new.o cint/src/struct.o cint/src/global1.o cint/src/opr.o cint/s
> rc/var.o cint/src/Typedef.o cint/src/end.o cint/src/val2a.o cint/src/g__cfunc.o
> cint/src/dict/stdstrct.o cint/src/dict/longif3.o cint/src/pragma_tmp.o cint/src/
> loadfile_tmp.o  \
>    /mingw/lib/libreadline.a  -lm -ldl
> c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin
> d -ldl
> collect2: ld returned 1 exit status
> mingw32-make: *** [bin/cint_tmp.exe] Error 1
> *******************************************************************************************************************
>

>
>
>
> ----- Original Message -----
> From: Philippe Canal<pcanal@...>
> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
> Cc: Axel Naumann<Axel.Naumann@...>; "cint@..."<cint@...>
> Sent: Wednesday, 8 February 2012, 8:56
> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>
> Hi,
>
> Does using:
>
> extern "C" {
>      extern const char *G__libname;
> }
>
> work better? (this windows section is likely to be required also for ming as it is related
> to the way the file system behave).
>
> Cheers,
> Philippe.
>
>
> On 2/7/12 9:19 PM, Dr. Prasad, B.V.L.S. wrote:
>> Hi,
>> Great Pointer and when I added __MARKER_FOR_MINGW__ with __MINGW32__
>> it worked.
>> Now it is exiting at a different point with the following error:
>> ****************************************************************************************************
>> cint/src/newlink.cxx:81:1: error: invalid use of 'extern' in linkage specificati
>> on
>> mingw32-make: *** [cint/src/newlink.o] Error 1
>> ***************************************************************************************************
>>
>> and code from newlink.cxx is:
>>
>> *********************************************
>> #ifdef _WIN32
>> #include "windows.h"
>> #include<errno.h>
>> extern "C"
>> extern const char *G__libname;
>>
>> FILE *FOpenAndSleep(const char *filename, const char *mode) {
>>       int tries=0;
>>       FILE *ret=0;
>>       while (!ret&&   ++tries<51)
>>          if (!(ret=fopen(filename, mode))&&   tries<50)
>>             if (errno!=EACCES&&   errno!=EEXIST) return 0;
>>             else Sleep(200);
>>       if (tries>1)  printf("fopen slept for %g seconds until it succeeeded.\n", (tr
>> ies-1)/5.);
>>       return ret;
>> }
>>
>> # ifdef fopen
>> #  undef fopen
>> # endif
>> # define fopen(A,B) FOpenAndSleep((A),(B))
>> #endif
>> ******************************************************************************
>>
>> is this also related to specifying a MINGW32 directive ?
>> Please guide me through.
>> Thank you,
>> Prasad.
>>
>> 
>>
>>
>>
>>
>> ----- Original Message -----
>> From: Philippe Canal<pcanal@...>
>> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
>> Cc: Axel Naumann<Axel.Naumann@...>; "cint@..."<cint@...>
>> Sent: Tuesday, 7 February 2012, 21:57
>> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>>
>> Hi Prasad,
>>
>> We need to replace the line:
>>
>>         #if defined(G__WIN32)&&   !defined(__CINT__)
>>
>> with something like
>>
>>        #if defined(G__WIN32)&&    !defined(__CINT__)&&    !defined(__MARKER_FOR_MINGW__)
>>
>> where the 'missing' piece of information is which symbol
>> to use instead of  __MARKER_FOR_MINGW__.
>>
>> Thanks,
>> Philippe.
>>
>>
>>
>> On 2/6/12 9:35 PM, Dr. Prasad, B.V.L.S. wrote:
>>> Hi,
>>>
>>> Long time back, back in 2008, I was trying to port cint5.18.00 to mingw when I posted a query showing the error.
>>> The reason for this email is: I would like to resolve this error by my self.
>>>
>>> any pointers / explanation of the problem will definitely put me on the track of resolving this error.
>>>
>>> I think I am more comfortable in fixing the bugs when compared to 2008.
>>>
>>> The error:
>>>> In file included from ../inc/Api.h:25,
>>>>                        from v6_random.cxx:27:
>>>> ../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 v6_random.cxx:27:
>>> The corresponding code in the G__ci.h from CINT/src is:
>>> /***********************************************************************
>>>       * Native long long support
>>>       ***********************************************************************/
>>> #if defined(G__WIN32)&&    !defined(__CINT__)
>>> typedef __int64            G__int64;
>>> typedef unsigned __int64   G__uint64;
>>> #else
>>> typedef long long          G__int64;
>>> typedef unsigned long long G__uint64;
>>> #endif
>>>
>>> Definitely the typedef is the problem.
>>> Once this is fixed all others should fall in place for mingw.
>>> This code works very clean on a Linux system.
>>> My goal is to make this work on mingw.
>>>
>>> What can I do to help fix this bug.??
>>>
>>> Thank you,
>>> Looking forward to your help.
>>>
>>> Prasad.
>>>
>>>
>>>
>>>
>>>
>>>
>>> ----- Original Message -----
>>> From: "Dr. Prasad, B.V.L.S."<burrashiva@...>
>>> To: Axel Naumann<Axel.Naumann@...>
>>> Cc:
>>> Sent: Thursday, 3 July 2008, 6:47
>>> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>>>
>>> thank you very much.
>>> Prasad.
>>>
>>> Dr. Prasad, B.V.L.S.
>>> MD&    CTO,
>>> Helix Genomics Pvt. Ltd.
>>> ***************************************************************
>>> As You Progress, There is Some More to Progress - shiva.
>>> ***************************************************************
>>>
>>>
>>>
>>> ----- Original Message ----
>>> From: Axel Naumann<Axel.Naumann@...>
>>> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
>>> Cc: cint@...
>>> Sent: Wednesday, 2 July, 2008 11:04:30 AM
>>> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>>>
>>> Hi,
>>>
>>> I will try to fix this during the next few days. I will come back to you
>>> once it's fixed.
>>>
>>> Cheers, Axel.
>>>
>>> On 2008-07-01 01:02, Dr. Prasad, B.V.L.S. wrote:
>>>> I installed readline5.2 and ran the configure script>>>./configure --arch=mingw --readline=../readline-5.2
>>>> then used make: I am getting following errors, can some one help ?
>>>> Thank you,
>>>> $ make
>>>> make -C src
>>>> make[1]: Entering directory `/home/pburra/cint/src'
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_debug.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_decl.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_disp.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_dump.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_end.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_error.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_expr.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_fread.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_func.cxx
>>>> v6_func.cxx: In function `int G__library_func(G__value*, char*, G__param*, int)':
>>>> v6_func.cxx:3864: warning: passing NULL used for non-pointer converting 3 of `void G__letint(G__value*, int, long int)'
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_gcoll.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_global1.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_global2.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_ifunc.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_inherit.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_init.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_input.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_intrpt.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_loadfile.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_macro.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_malloc.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_memtest.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_new.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_newlink.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_oldlink.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_opr.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_parse.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pause.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pcode.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pragma.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_quote.cxx
>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_random.cxx
>>>> In file included from ../inc/Api.h:25,
>>>>                        from v6_random.cxx:27:
>>>> ../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 v6_random.cxx:27:
>>>> ../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:1876: error: `G__int64' has not been declared
>>>> ../inc/G__ci.h:1876: error: ISO C++ forbids declaration of `value' with no type
>>>> ../inc/G__ci.h:1877: error: `G__uint64' has not been declared
>>>> ../inc/G__ci.h:1877: error: ISO C++ forbids declaration of `value' with no type
>>>> ../inc/G__ci.h:1879: error: `G__int64' does not name a type
>>>> ../inc/G__ci.h:1880: error: `G__uint64' does not name a type
>>>> ../inc/G__ci.h:1882: error: expected initializer before '*' token
>>>> ../inc/G__ci.h:1883: error: expected initializer before '*' token
>>>> ../inc/G__ci.h:2487: error: `G__int64' does not name a type
>>>> ../inc/G__ci.h:2488: error: `G__uint64' does not name a type
>>>> In file included from ../inc/Api.h:44,
>>>>                        from v6_random.cxx:27:
>>>> ../inc/CallFunc.h:85: error: `G__int64' has not been declared
>>>> ../inc/CallFunc.h:85: error: ISO C++ forbids declaration of `ll' with no type
>>>> ../inc/CallFunc.h:86: error: `G__uint64' has not been declared
>>>> ../inc/CallFunc.h:86: error: ISO C++ forbids declaration of `ull' with no type
>>>> ../inc/CallFunc.h:86: error: `void Cint::G__CallFunc::SetArg(int)' and `void Cint::G__CallFunc::SetArg(int)' cannot be overloaded
>>>> ../inc/CallFunc.h:88: error: `G__int64' has not been declared
>>>> ../inc/CallFunc.h:88: error: ISO C++ forbids declaration of `ll' with no type
>>>> ../inc/CallFunc.h:89: error: `G__uint64' has not been declared
>>>> ../inc/CallFunc.h:89: error: ISO C++ forbids declaration of `ull' with no type
>>>> ../inc/CallFunc.h:89: error: `void Cint::G__CallFunc::SetArgRef(int&)' and `void Cint::G__CallFunc::SetArgRef(int&)' cannot be overloaded
>>>> ../inc/CallFunc.h:99: error: `G__int64' does not name a type
>>>> make[1]: *** [v6_random.o] Error 1
>>>> make[1]: Leaving directory `/home/pburra/cint/src'
>>>> make: *** [libcint.dll] Error 2
>>>>
>>>>
>>>>             __________________________________________________________
>>>> Not happy with your email address?.
>>>> Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
>>>>
>>>            __________________________________________________________
>>> Not happy with your email address?.
>>> Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
>>>
>>>

----- Original Message -----



Re: Compiling CINT on MINGW:Errors:

by Philippe Canal :: Rate this Message:

| View Threaded | Show Only this Message

Hi,

There seems to be 2 problems:

Report: Unrecognized string ''#pragma ifndef G__TMPLTIOS''#pragma else''#pragma endif'' ignored
C:/MinGW/msys/1.0/home/USER/cint-5.18.00\cint\include\iosenum.h( 14)

is likely due to a windows vs unix line ending problem.

And:

    "C;C:\MinGW\msys\1.0\home\USER\cint-5.18.00/lib"

where CINTSYSDIR seems to have inherited an extra 'C;'

Philippe.



On 2/8/12 11:58 PM, Dr. Prasad, B.V.L.S. wrote:

> Hi,
>
>
> I think I made some progress (though crude way) - I would appreciate your help.
>
>
> In the configure file I modified the line in config_unix_defaults function:
>
> from
>
> DEFAULTLIBS="-lm -ldl"
> to
>
> DEFAULTLIBS=" -lmsvcp60 -lgw32c -lole32 -luuid -lws2_32 -lm "
>
>
> The problem with above modification is: this will no more work in Linux Systems. There should be a way to write in the Config files that
>
> if there it is mingw/win32 please add the additional libraries mentioned above.
>
>
> this finally created the CINT.exe. For record: what I learn from searching is: it is looking for some Symbols specific to windows OS and
>
> most of the time referred in MSDN.
>
>
> After this step: I could see the cint.exe, libCint.dll and and libCint_static.a in bin and lib directories of $PWD.
>
>
> However, I donot know why it was not taking the path properly and was unable to link to libCint.dll because of which the makecint.exe
> failed for the STLs.
>
>
> Could you help where to look for fixing this problem ??
> Here is the part output (error):
>
> *******************************************************************************************************************************
> (cd cint/lib/dll_stl; chmod a+x setup; PATH=../../../bin:../../../lib:$PATH LD_L
> IBRARY_PATH=../../../lib:$LD_LIBRARY_PATH DYLD_LIBRARY_PATH=../../../lib:$DYLD_L
> IBRARY_PATH ./setup)
> ##########################################################################
> # makecint : interpreter-compiler for cint (Windows Mingw version)
> # Copyright(c) 1995~2010 Masaharu Goto. Mailing list: cint@...
> ##########################################################################
> Run 'make -f Makestr' to compile the object
> make[1]: Entering directory `/usr/home/USER/cint-5.18.00/cint/lib/dll_stl'
> C:/MinGW/msys/1.0/home/USER/cint-5.18.00/cint/lib/dll_stl/../../../bin/cint.exe
>   -w2 -zstring -nG__cpp_string.cxx  -D__MAKECINT__ -DG__MAKECINT  -c-1 -A -IC:/Mi
> nGW/msys/1.0/home/USER/cint-5.18.00/cint/inc  -DG__MINGW -DG__STD_EXCEPTION -DG_
> _HAVE_CONFIG -DG__NOMAKEINFO  -Z0 str.h
> Report: Unrecognized string ''#pragma ifndef G__TMPLTIOS''#pragma else''#pragma
> endif'' ignored C:/MinGW/msys/1.0/home/USER/cint-5.18.00\cint\include\iosenum.h(
> 14)
> g++  -IC:/MinGW/msys/1.0/home/USER/cint-5.18.00/cint/inc  -DG__MINGW -DG__STD_EX
> CEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2   -mno-cygwin -DG__GNUREADLINE
> -c G__cpp_string.cxx
> g++   -shared --export-all-symbols -o string.dll   G__cpp_string.o  -L"C;C:\MinG
> W\msys\1.0\home\USER\cint-5.18.00/lib" -lCint  -lmsvcp60 -lgw32c -lole32 -luuid
> -lws2_32 -lm
> c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin
> d -lCint
> collect2: ld returned 1 exit status
> make[1]: *** [string.dll] Error 1
> make[1]: Leaving directory `/usr/home/USER/cint-5.18.00/cint/lib/dll_stl'
> mv: cannot stat `string.dll': No such file or directory
> ##########################################################################
> # makecint : interpreter-compiler for cint (Windows Mingw version)
> # Copyright(c) 1995~2010 Masaharu Goto. Mailing list: cint@...
> ##########################################################################
> Run 'make -f Makevec' to compile the object
> make[1]: Entering directory `/usr/home/USER/cint-5.18.00/cint/lib/dll_stl'
> C:/MinGW/msys/1.0/home/USER/cint-5.18.00/cint/lib/dll_stl/../../../bin/cint.exe
>   -w2 -zvector -nG__cpp_vector.cxx  -D__MAKECINT__ -DG__MAKECINT  -c-1 -A -IC:/Mi
> nGW/msys/1.0/home/USER/cint-5.18.00/cint/inc  -DG__MINGW -DG__STD_EXCEPTION -DG_
> _HAVE_CONFIG -DG__NOMAKEINFO  -DG__NOALGORITHM -Z0 vec.h
> Report: Unrecognized string ''#pragma ifndef G__TMPLTIOS''#pragma else''#pragma
> endif'' ignored C:/MinGW/msys/1.0/home/USER/cint-5.18.00\cint\include\iosenum.h(
> 14)
> g++  -IC:/MinGW/msys/1.0/home/USER/cint-5.18.00/cint/inc  -DG__MINGW -DG__STD_EX
> CEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -DG__NOALGORITHM -O2   -mno-cygwin -DG
> __GNUREADLINE    -c G__cpp_vector.cxx
> g++   -shared --export-all-symbols -o vector.dll   G__cpp_vector.o  -L"C;C:\MinG
> W\msys\1.0\home\USER\cint-5.18.00/lib" -lCint  -lmsvcp60 -lgw32c -lole32 -luuid
> -lws2_32 -lm
> c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin
> d -lCint
> collect2: ld returned 1 exit status
> make[1]: *** [vector.dll] Error 1
> make[1]: Leaving directory `/usr/home/USER/cint-5.18.00/cint/lib/dll_stl'
> mv: cannot stat `vector.dll': No such file or directory
> ##########################################################################
> # makecint : interpreter-compiler for cint (Windows Mingw version)
> # Copyright(c) 1995~2010 Masaharu Goto. Mailing list: cint@...
> ##########################################################################
> Run 'make -f Makevecbool' to compile the object
> make[1]: Entering directory `/usr/home/USER/cint-5.18.00/cint/lib/dll_stl'
> C:/MinGW/msys/1.0/home/USER/cint-5.18.00/cint/lib/dll_stl/../../../bin/cint.exe
>   -w2 -zvectorbool -nG__cpp_vectorbool.cxx  -D__MAKECINT__ -DG__MAKECINT  -c-1 -A
>   -IC:/MinGW/msys/1.0/home/USER/cint-5.18.00/cint/inc  -DG__MINGW -DG__STD_EXCEPT
> ION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -DG__NOALGORITHM -Z0 vecbool.h
> g++  -IC:/MinGW/msys/1.0/home/USER/cint-5.18.00/cint/inc  -DG__MINGW -DG__STD_EX
> CEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -DG__NOALGORITHM -O2   -mno-cygwin -DG
> __GNUREADLINE    -c G__cpp_vectorbool.cxx
> g++   -shared --export-all-symbols -o vectorbool.dll   G__cpp_vectorbool.o  -L"C
> ;C:\MinGW\msys\1.0\home\USER\cint-5.18.00/lib" -lCint  -lmsvcp60 -lgw32c -lole32
>   -luuid -lws2_32 -lm
> c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin
> d -lCint
> collect2: ld returned 1 exit status
> make[1]: *** [vectorbool.dll] Error 1
> make[1]: Leaving directory `/usr/home/USER/cint-5.18.00/cint/lib/dll_stl'
> mv: cannot stat `vectorbool.dll': No such file or directory
> ******************************************************************************************************
>
>
>
>
>
>
>
>  
> From: "Dr. Prasad, B.V.L.S."<burrashiva@...>
> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>; Philippe Canal<pcanal@...>
> Cc: Axel Naumann<Axel.Naumann@...>; "cint@..."<cint@...>
> Sent: Wednesday, 8 February 2012, 9:52
> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>
> I got a pointer for this error:  and the solution to this seems to be:
>
>
> ******************************************************************************************************************************************
>
> must also link with libmsvcp60 and libgw32c, and these libraries must be after libreadline in the linking statement; so e.g.
> LIBS = -lreadline -lmsvcp60 -lgw32c
> ******************************************************************************************************************************************
>
> So, where exactly should I incorporate this LIBS instruction in the Makefile which doesnt have any LIB specifications?
>
> thank you very much,
>
> looking forward to hearing from you,
>
> regards,
>
> Prasad.
>
>
>
>
>
> ----- Original Message -----
> From: "Dr. Prasad, B.V.L.S."<burrashiva@...>
> To: Philippe Canal<pcanal@...>
> Cc: Axel Naumann<Axel.Naumann@...>; "cint@..."<cint@...>
> Sent: Wednesday, 8 February 2012, 9:30
> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>
> Hi,
> I searched google and got the libdl.a file. Put that in the mingw/lib directory and it worked.
> Now with another problem:
>
>    /mingw/lib/libreadline.a  -lm -ldl
> /mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x1f72): undefined refere
> nce to `lstat64'
> /mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x20bf): undefined refere
> nce to `stat64'
> /mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x2135): undefined refere
> nce to `lstat64'
> /mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x21d7): undefined refere
> nce to `stat64'
> /mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x231a): undefined refere
> nce to `stat64'
> /mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x236a): undefined refere
> nce to `stat64'
> /mingw/lib/libreadline.a(complete.o):complete.c:(.text+0x23cf): undefined refere
> nce to `lstat64'
> /mingw/lib/libreadline.a(bind.o):bind.c:(.text+0x3b9a): undefined reference to `
> stat64'
> /mingw/lib/libreadline.a(parens.o):parens.c:(.text+0xf9): undefined reference to
>   `select@20'
> collect2: ld returned 1 exit status
> mingw32-make: *** [bin/cint_tmp.exe] Error 1
>
> ******************************************************
> currently working on why it is complaining UNDEFINED REFERENCE to lstat64 ?
> any pointer ?? pl. let me know.
> will try your suggestion on libdl.
> further as per search, libtool is a better option over libdl - which is not currently relevant but still wanted to leave it for record.
>
> regards,
> Prasad.
>
>
>
>
>
> ----- Original Message -----
> From: Philippe Canal<pcanal@...>
> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
> Cc: Axel Naumann<Axel.Naumann@...>; "cint@..."<cint@...>
> Sent: Wednesday, 8 February 2012, 9:16
> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>
> Hi,
>
> Try to see if it links without the -ldl (which is supposed to bring in the library
> implementing dlopen and dlclose).
>
> Cheers,
> Philippe.
>
> On 2/7/12 9:34 PM, Dr. Prasad, B.V.L.S. wrote:
>> Hi,
>>
>>
>> The way you suggested - putting the extern const char* ...... in brackets worked.
>>
>> I tried removing the extern in front of the declaration - that too worked.
>>
>>
>> But I will go with your Brackets suggestion.
>>
>>
>> Now, mostly the last problem:
>>
>> it is not finding the the -ldl library ????
>> *********************************************************************************************************
>> $ mingw32-make.exe
>> tool/rmkdepend/rmkdepend.exe -R -fcint/src/newlink.d -Y -w 1000 -- -O2   -mno-cy
>> gwin -DG__GNUREADLINE -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKE
>> INFO -Icint/inc -Icint/src -Ireflex/inc -DG__CINTBODY -DREFLEX_CINT_MERGE -DInte
>> rnal=I -D__cplusplus -- cint/src/newlink.cxx
>> g++  -O2   -mno-cygwin -DG__GNUREADLINE -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_
>> CONFIG -DG__NOMAKEINFO -Icint/inc -Icint/src -Ireflex/inc -DG__CINTBODY -DREFLEX
>> _CINT_MERGE -DInternal=I -c cint/src/newlink.cxx -o cint/src/newlink.o
>> g++  -O2  -Wl,--enable-auto-import -o bin/cint_tmp.exe \
>>      cint/main/G__setup.o cint/main/cppmain.o cint/src/Api.o cint/src/Class.o cint/
>> src/BaseCls.o cint/src/Type.o cint/src/DataMbr.o cint/src/Method.o cint/src/Meth
>> odAr.o cint/src/CallFunc.o cint/src/Typedf.o cint/src/Token.o cint/src/Shadow.o
>> cint/src/bc_autoobj.o cint/src/bc_cfunc.o cint/src/bc_inst.o cint/src/bc_item.o
>> cint/src/bc_parse.o cint/src/bc_reader.o cint/src/bc_type.o cint/src/bc_exec.o c
>> int/src/bc_vtbl.o cint/src/bc_debug.o cint/src/bc_assign.o cint/src/dict/gcc4str
>> m.o cint/src/rflx_gendict.o cint/src/rflx_gensrc.o cint/src/rflx_tools.o cint/sr
>> c/gcoll.o cint/src/quote.o cint/src/init.o cint/src/global2.o cint/src/malloc.o
>> cint/src/parse.o cint/src/debug.o cint/src/sizeof.o cint/src/error.o cint/src/in
>> put.o cint/src/FastAllocString.o cint/src/pcode.o cint/src/inherit.o cint/src/tm
>> plt.o cint/src/expr.o cint/src/stub.o cint/src/random.o cint/src/newlink.o cint/
>> src/func.o cint/src/fread.o cint/src/pause.o cint/src/cast.o cint/src/disp.o cin
>> t/src/shl.o cint/src/dump.o cint/src/value.o cint/src/memtest.o cint/src/ifunc.o
>>     cint/src/scrupto.o cint/src/macro.o cint/src/decl.o cint/src/auxu.o cint/src/in
>> trpt.o cint/src/new.o cint/src/struct.o cint/src/global1.o cint/src/opr.o cint/s
>> rc/var.o cint/src/Typedef.o cint/src/end.o cint/src/val2a.o cint/src/g__cfunc.o
>> cint/src/dict/stdstrct.o cint/src/dict/longif3.o cint/src/pragma_tmp.o cint/src/
>> loadfile_tmp.o  \
>>      /mingw/lib/libreadline.a  -lm -ldl
>> c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin
>> d -ldl
>> collect2: ld returned 1 exit status
>> mingw32-make: *** [bin/cint_tmp.exe] Error 1
>> *******************************************************************************************************************
>>
>>  
>>
>>
>>
>> ----- Original Message -----
>> From: Philippe Canal<pcanal@...>
>> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
>> Cc: Axel Naumann<Axel.Naumann@...>; "cint@..."<cint@...>
>> Sent: Wednesday, 8 February 2012, 8:56
>> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>>
>> Hi,
>>
>> Does using:
>>
>> extern "C" {
>>        extern const char *G__libname;
>> }
>>
>> work better? (this windows section is likely to be required also for ming as it is related
>> to the way the file system behave).
>>
>> Cheers,
>> Philippe.
>>
>>
>> On 2/7/12 9:19 PM, Dr. Prasad, B.V.L.S. wrote:
>>> Hi,
>>> Great Pointer and when I added __MARKER_FOR_MINGW__ with __MINGW32__
>>> it worked.
>>> Now it is exiting at a different point with the following error:
>>> ****************************************************************************************************
>>> cint/src/newlink.cxx:81:1: error: invalid use of 'extern' in linkage specificati
>>> on
>>> mingw32-make: *** [cint/src/newlink.o] Error 1
>>> ***************************************************************************************************
>>>
>>> and code from newlink.cxx is:
>>>
>>> *********************************************
>>> #ifdef _WIN32
>>> #include "windows.h"
>>> #include<errno.h>
>>> extern "C"
>>> extern const char *G__libname;
>>>
>>> FILE *FOpenAndSleep(const char *filename, const char *mode) {
>>>         int tries=0;
>>>         FILE *ret=0;
>>>         while (!ret&&    ++tries<51)
>>>            if (!(ret=fopen(filename, mode))&&    tries<50)
>>>               if (errno!=EACCES&&    errno!=EEXIST) return 0;
>>>               else Sleep(200);
>>>         if (tries>1)  printf("fopen slept for %g seconds until it succeeeded.\n", (tr
>>> ies-1)/5.);
>>>         return ret;
>>> }
>>>
>>> # ifdef fopen
>>> #  undef fopen
>>> # endif
>>> # define fopen(A,B) FOpenAndSleep((A),(B))
>>> #endif
>>> ******************************************************************************
>>>
>>> is this also related to specifying a MINGW32 directive ?
>>> Please guide me through.
>>> Thank you,
>>> Prasad.
>>>
>>>  
>>>
>>>
>>>
>>>
>>> ----- Original Message -----
>>> From: Philippe Canal<pcanal@...>
>>> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
>>> Cc: Axel Naumann<Axel.Naumann@...>; "cint@..."<cint@...>
>>> Sent: Tuesday, 7 February 2012, 21:57
>>> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>>>
>>> Hi Prasad,
>>>
>>> We need to replace the line:
>>>
>>>           #if defined(G__WIN32)&&    !defined(__CINT__)
>>>
>>> with something like
>>>
>>>          #if defined(G__WIN32)&&     !defined(__CINT__)&&     !defined(__MARKER_FOR_MINGW__)
>>>
>>> where the 'missing' piece of information is which symbol
>>> to use instead of  __MARKER_FOR_MINGW__.
>>>
>>> Thanks,
>>> Philippe.
>>>
>>>
>>>
>>> On 2/6/12 9:35 PM, Dr. Prasad, B.V.L.S. wrote:
>>>> Hi,
>>>>
>>>> Long time back, back in 2008, I was trying to port cint5.18.00 to mingw when I posted a query showing the error.
>>>> The reason for this email is: I would like to resolve this error by my self.
>>>>
>>>> any pointers / explanation of the problem will definitely put me on the track of resolving this error.
>>>>
>>>> I think I am more comfortable in fixing the bugs when compared to 2008.
>>>>
>>>> The error:
>>>>> In file included from ../inc/Api.h:25,
>>>>>                          from v6_random.cxx:27:
>>>>> ../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 v6_random.cxx:27:
>>>> The corresponding code in the G__ci.h from CINT/src is:
>>>> /***********************************************************************
>>>>         * Native long long support
>>>>         ***********************************************************************/
>>>> #if defined(G__WIN32)&&     !defined(__CINT__)
>>>> typedef __int64            G__int64;
>>>> typedef unsigned __int64   G__uint64;
>>>> #else
>>>> typedef long long          G__int64;
>>>> typedef unsigned long long G__uint64;
>>>> #endif
>>>>
>>>> Definitely the typedef is the problem.
>>>> Once this is fixed all others should fall in place for mingw.
>>>> This code works very clean on a Linux system.
>>>> My goal is to make this work on mingw.
>>>>
>>>> What can I do to help fix this bug.??
>>>>
>>>> Thank you,
>>>> Looking forward to your help.
>>>>
>>>> Prasad.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ----- Original Message -----
>>>> From: "Dr. Prasad, B.V.L.S."<burrashiva@...>
>>>> To: Axel Naumann<Axel.Naumann@...>
>>>> Cc:
>>>> Sent: Thursday, 3 July 2008, 6:47
>>>> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>>>>
>>>> thank you very much.
>>>> Prasad.
>>>>
>>>> Dr. Prasad, B.V.L.S.
>>>> MD&     CTO,
>>>> Helix Genomics Pvt. Ltd.
>>>> ***************************************************************
>>>> As You Progress, There is Some More to Progress - shiva.
>>>> ***************************************************************
>>>>
>>>>
>>>>
>>>> ----- Original Message ----
>>>> From: Axel Naumann<Axel.Naumann@...>
>>>> To: "Dr. Prasad, B.V.L.S."<burrashiva@...>
>>>> Cc: cint@...
>>>> Sent: Wednesday, 2 July, 2008 11:04:30 AM
>>>> Subject: Re: [CINT] Compiling CINT on MINGW:Errors:
>>>>
>>>> Hi,
>>>>
>>>> I will try to fix this during the next few days. I will come back to you
>>>> once it's fixed.
>>>>
>>>> Cheers, Axel.
>>>>
>>>> On 2008-07-01 01:02, Dr. Prasad, B.V.L.S. wrote:
>>>>> I installed readline5.2 and ran the configure script>>>./configure --arch=mingw --readline=../readline-5.2
>>>>> then used make: I am getting following errors, can some one help ?
>>>>> Thank you,
>>>>> $ make
>>>>> make -C src
>>>>> make[1]: Entering directory `/home/pburra/cint/src'
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_debug.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_decl.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_disp.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_dump.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_end.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_error.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_expr.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_fread.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_func.cxx
>>>>> v6_func.cxx: In function `int G__library_func(G__value*, char*, G__param*, int)':
>>>>> v6_func.cxx:3864: warning: passing NULL used for non-pointer converting 3 of `void G__letint(G__value*, int, long int)'
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_gcoll.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_global1.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_global2.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_ifunc.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_inherit.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_init.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_input.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_intrpt.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_loadfile.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_macro.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_malloc.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_memtest.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_new.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_newlink.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_oldlink.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_opr.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_parse.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pause.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pcode.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_pragma.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_quote.cxx
>>>>> g++ -I../inc -O2   -mno-cygwin -DG__GNUREADLINE -DG__CINTBODY -DG__MINGW -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO -c v6_random.cxx
>>>>> In file included from ../inc/Api.h:25,
>>>>>                          from v6_random.cxx:27:
>>>>> ../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 v6_random.cxx:27:
>>>>> ../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:1876: error: `G__int64' has not been declared
>>>>> ../inc/G__ci.h:1876: error: ISO C++ forbids declaration of `value' with no type
>>>>> ../inc/G__ci.h:1877: error: `G__uint64' has not been declared
>>>>> ../inc/G__ci.h:1877: error: ISO C++ forbids declaration of `value' with no type
>>>>> ../inc/G__ci.h:1879: error: `G__int64' does not name a type
>>>>> ../inc/G__ci.h:1880: error: `G__uint64' does not name a type
>>>>> ../inc/G__ci.h:1882: error: expected initializer before '*' token
>>>>> ../inc/G__ci.h:1883: error: expected initializer before '*' token
>>>>> ../inc/G__ci.h:2487: error: `G__int64' does not name a type
>>>>> ../inc/G__ci.h:2488: error: `G__uint64' does not name a type
>>>>> In file included from ../inc/Api.h:44,
>>>>>                          from v6_random.cxx:27:
>>>>> ../inc/CallFunc.h:85: error: `G__int64' has not been declared
>>>>> ../inc/CallFunc.h:85: error: ISO C++ forbids declaration of `ll' with no type
>>>>> ../inc/CallFunc.h:86: error: `G__uint64' has not been declared
>>>>> ../inc/CallFunc.h:86: error: ISO C++ forbids declaration of `ull' with no type
>>>>> ../inc/CallFunc.h:86: error: `void Cint::G__CallFunc::SetArg(int)' and `void Cint::G__CallFunc::SetArg(int)' cannot be overloaded
>>>>> ../inc/CallFunc.h:88: error: `G__int64' has not been declared
>>>>> ../inc/CallFunc.h:88: error: ISO C++ forbids declaration of `ll' with no type
>>>>> ../inc/CallFunc.h:89: error: `G__uint64' has not been declared
>>>>> ../inc/CallFunc.h:89: error: ISO C++ forbids declaration of `ull' with no type
>>>>> ../inc/CallFunc.h:89: error: `void Cint::G__CallFunc::SetArgRef(int&)' and `void Cint::G__CallFunc::SetArgRef(int&)' cannot be overloaded
>>>>> ../inc/CallFunc.h:99: error: `G__int64' does not name a type
>>>>> make[1]: *** [v6_random.o] Error 1
>>>>> make[1]: Leaving directory `/home/pburra/cint/src'
>>>>> make: *** [libcint.dll] Error 2
>>>>>
>>>>>
>>>>>               __________________________________________________________
>>>>> Not happy with your email address?.
>>>>> Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
>>>>>
>>>>              __________________________________________________________
>>>> Not happy with your email address?.
>>>> Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
>>>>
>>>>
> ----- Original Message -----
>
>