Error with Complex/Makecint example

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

Error with Complex/Makecint example

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

Reply to Author | View Threaded | Show Only this Message

Hi, (Axel) ...I am sorry. I didnt pay attention to the email addresses.

I successfully compiled cint. (on two arch, X86_64(g++-v3.4.6) and i586(g++ 4.1.2)

tried testing makecint/complex demo example.
I did the following steps:

1) makecint -mk mkcmplx -o Complex -H Complex.h -C++ Complex.C
2) make -f mkcmplx
Here I am getting the following error:
*****************************************************************************
gcc -DG__CXXLINK_ON -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2 -m64  -fPIC    -o G__setup.o -c /home/parisodh/public_html/bosonline/cgi-bin/cint//main/G__setup.c
/home/parisodh/public_html/bosonline/cgi-bin/cint/cint  -w0 -zComplex -nG__cpp_Complex.cxx  -D__MAKECINT__ -DG__MAKECINT  -c-1 -A -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO   Complex.h
g++ -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2 -m64  -fPIC  -DG__GNUREADLINE    -c G__cpp_Complex.cxx
g++ -O2 -m64   -o Complex  G__cpp_Complex.o   G__setup.o /usr/lib64/libreadline.a /usr/lib64/libncurses.a -L/home/parisodh/public_html/bosonline/cgi-bin/cint/ -lcint -lm -ldl  
/root/bin/../lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.text+0x21): In function `_start':
: undefined reference to `main'
/home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `completion_matches'
/home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `readline'
/home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `rl_attempted_completion_function'
/home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `add_history'
/home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `rl_basic_word_break_characters'
collect2: ld returned 1 exit status
make: *** [Complex] Error 1
******************************************************************************************************
when does this error come ? where am I doing wrong?
FYI, I am using Linux. X86_64 arch, g++ -v-3.4.6.

Then I used:i586 and Linux, with G++-v 4.1.2 ...
the following error I got:
*****************************************************************************************************
g++ -I/home/bosdev/downloads/cint-5.16.19//inc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2  -DG__GNUREADLINE    -c G__cpp_Complex.cxx
G__cpp_Complex.cxx: In function ‘void G__cpp_setup_func2()’:
G__cpp_Complex.cxx:514: error: overloaded function with no contextual type information
G__cpp_Complex.cxx:520: error: overloaded function with no contextual type information
G__cpp_Complex.cxx:526: error: ‘real’ was not declared in this scope
G__cpp_Complex.cxx:532: error: ‘imag’ was not declared in this scope
make: *** [G__cpp_Complex.o] Error 1
******************************************************************************************************

thanks for any help.
Prasad.



      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 


Re: Error with Complex/Makecint example

by kele :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
I'm having very similar problem. I'm using VS 2005, so I run setup.bat from makecint/Complex folder, which is combination of makecint and nmake commands. I get error massage:
Makefile(6) : fatal error U1033: syntax error : '=' unexpected  
The same error appears when I try to use makecint & nmake with my own .h .c files. Anybody knows what's happening?
Thanks.

Dr. Prasad, B.V.L.S. wrote:
Hi, (Axel) ...I am sorry. I didnt pay attention to the email addresses.

I successfully compiled cint. (on two arch, X86_64(g++-v3.4.6) and i586(g++ 4.1.2)

tried testing makecint/complex demo example.
I did the following steps:

1) makecint -mk mkcmplx -o Complex -H Complex.h -C++ Complex.C
2) make -f mkcmplx
Here I am getting the following error:
*****************************************************************************
gcc -DG__CXXLINK_ON -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2 -m64  -fPIC    -o G__setup.o -c /home/parisodh/public_html/bosonline/cgi-bin/cint//main/G__setup.c
/home/parisodh/public_html/bosonline/cgi-bin/cint/cint  -w0 -zComplex -nG__cpp_Complex.cxx  -D__MAKECINT__ -DG__MAKECINT  -c-1 -A -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO   Complex.h
g++ -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2 -m64  -fPIC  -DG__GNUREADLINE    -c G__cpp_Complex.cxx
g++ -O2 -m64   -o Complex  G__cpp_Complex.o   G__setup.o /usr/lib64/libreadline.a /usr/lib64/libncurses.a -L/home/parisodh/public_html/bosonline/cgi-bin/cint/ -lcint -lm -ldl  
/root/bin/../lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.text+0x21): In function `_start':
: undefined reference to `main'
/home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `completion_matches'
/home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `readline'
/home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `rl_attempted_completion_function'
/home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `add_history'
/home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `rl_basic_word_break_characters'
collect2: ld returned 1 exit status
make: *** [Complex] Error 1
******************************************************************************************************
when does this error come ? where am I doing wrong?
FYI, I am using Linux. X86_64 arch, g++ -v-3.4.6.

Then I used:i586 and Linux, with G++-v 4.1.2 ...
the following error I got:
*****************************************************************************************************
g++ -I/home/bosdev/downloads/cint-5.16.19//inc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2  -DG__GNUREADLINE    -c G__cpp_Complex.cxx
G__cpp_Complex.cxx: In function ‘void G__cpp_setup_func2()’:
G__cpp_Complex.cxx:514: error: overloaded function with no contextual type information
G__cpp_Complex.cxx:520: error: overloaded function with no contextual type information
G__cpp_Complex.cxx:526: error: ‘real’ was not declared in this scope
G__cpp_Complex.cxx:532: error: ‘imag’ was not declared in this scope
make: *** [G__cpp_Complex.o] Error 1
******************************************************************************************************

thanks for any help.
Prasad.



      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

Re: Error with Complex/Makecint example

by Axel Naumann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Prasad,

this is fixed in CVS; I will upload a new release next week (binaries +
source) but you can already extract if from CVS. Please check the CINT
web page for info on how to do that.

Cheers, Axel.

Dr. Prasad, B.V.L.S. wrote:

> Hi, (Axel) ...I am sorry. I didnt pay attention to the email addresses.
>
> I successfully compiled cint. (on two arch, X86_64(g++-v3.4.6) and i586(g++ 4.1.2)
>
> tried testing makecint/complex demo example.
> I did the following steps:
>
> 1) makecint -mk mkcmplx -o Complex -H Complex.h -C++ Complex.C
> 2) make -f mkcmplx
> Here I am getting the following error:
> *****************************************************************************
> gcc -DG__CXXLINK_ON -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2 -m64  -fPIC    -o G__setup.o -c /home/parisodh/public_html/bosonline/cgi-bin/cint//main/G__setup.c
> /home/parisodh/public_html/bosonline/cgi-bin/cint/cint  -w0 -zComplex -nG__cpp_Complex.cxx  -D__MAKECINT__ -DG__MAKECINT  -c-1 -A -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO   Complex.h
> g++ -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2 -m64  -fPIC  -DG__GNUREADLINE    -c G__cpp_Complex.cxx
> g++ -O2 -m64   -o Complex  G__cpp_Complex.o   G__setup.o /usr/lib64/libreadline.a /usr/lib64/libncurses.a -L/home/parisodh/public_html/bosonline/cgi-bin/cint/ -lcint -lm -ldl  
> /root/bin/../lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.text+0x21): In function `_start':
> : undefined reference to `main'
> /home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `completion_matches'
> /home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `readline'
> /home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `rl_attempted_completion_function'
> /home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `add_history'
> /home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `rl_basic_word_break_characters'
> collect2: ld returned 1 exit status
> make: *** [Complex] Error 1
> ******************************************************************************************************
> when does this error come ? where am I doing wrong?
> FYI, I am using Linux. X86_64 arch, g++ -v-3.4.6.
>
> Then I used:i586 and Linux, with G++-v 4.1.2 ...
> the following error I got:
> *****************************************************************************************************
> g++ -I/home/bosdev/downloads/cint-5.16.19//inc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2  -DG__GNUREADLINE    -c G__cpp_Complex.cxx
> G__cpp_Complex.cxx: In function ‘void G__cpp_setup_func2()’:
> G__cpp_Complex.cxx:514: error: overloaded function with no contextual type information
> G__cpp_Complex.cxx:520: error: overloaded function with no contextual type information
> G__cpp_Complex.cxx:526: error: ‘real’ was not declared in this scope
> G__cpp_Complex.cxx:532: error: ‘imag’ was not declared in this scope
> make: *** [G__cpp_Complex.o] Error 1
> ******************************************************************************************************
>
> thanks for any help.
> Prasad.
>
>
>
>       ___________________________________________________________
> Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
> now.
> http://uk.answers.yahoo.com/ 
>
>


Parent Message unknown Re: Error with Complex/Makecint example

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

Reply to Author | View Threaded | Show Only this Message

Hi Axel,
 
further to your suggestion, I cvs checked out the latest cint.
Still no luck. I am getting the following error: Could you pl. look into it  and let me know where I am going wrong. Thank you,
*******************************************************************************************************************
parisodh@... [~/public_html/bosonline/cgi-bin/cint/demo/makecint/Complex]# makecint -mk mkcmplx -o Complex -H Complex.h -C++ Complex.C
##########################################################################
# makecint : interpreter-compiler for cint (UNIX version)
# Copyright(c) 1995~2007 Masaharu Goto. Mailing list: cint@...
##########################################################################
Run 'make -f mkcmplx' to compile the object
parisodh@... [~/public_html/bosonline/cgi-bin/cint/demo/makecint/Complex]# make -f mkcmplx
gcc -O2 -m64  -fPIC      -c -o /home/parisodh/public_html/bosonline/cgi-bin/cint//main/G__main.o /home/parisodh/public_html/bosonline/cgi-bin/cint//main/G__main.c
gcc -DG__CXXLINK_ON -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2 -m64  -fPIC    -o G__setup.o -c /home/parisodh/public_html/bosonline/cgi-bin/cint//main/G__setup.c
g++  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2 -m64  -fPIC  -DG__GNUREADLINE -o Complex.o -c Complex.C
/home/parisodh/public_html/bosonline/cgi-bin/cint/cint  -w0 -zComplex -nG__cpp_Complex.cxx  -D__MAKECINT__ -DG__MAKECINT  -c-1 -A -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO   Complex.h
Error: Symbol __BEGIN_DECLS#define__need_size_t#define__need_NULL#include is not defined in current scope  FILE:/usr/include/stdio.h LINE:46
Error: Symbol stddef is not defined in current scope  FILE:/usr/include/stdio.h LINE:46
Error: Failed to evaluate stddef.h
Error: Symbol #include is not defined in current scope  FILE:/usr/include/stdio.h LINE:46
Error: Symbol bits is not defined in current scope  FILE:/usr/include/stdio.h LINE:46
Error: Symbol types is not defined in current scope  FILE:/usr/include/stdio.h LINE:46
Error: Failed to evaluate types.h
Error: operator '/' divided by zero FILE:/usr/include/stdio.h LINE:46
Error: Symbol #define__need_FILE#define__need___FILE#endif#if!defined__FILE_defined is not defined in current scope  FILE:/usr/include/stdio.h LINE:46
!!!Removing G__cpp_Complex.cxx G__cpp_Complex.h !!!
make: *** [G__cpp_Complex.cxx] Error 1

************************************************
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, 22 August, 2007 11:18:30 AM
Subject: Re: [CINT] Error with Complex/Makecint example

Hi Prasad,

this is fixed in CVS; I will upload a new release next week (binaries +
source) but you can already extract if from CVS. Please check the CINT
web page for info on how to do that.

Cheers, Axel.

Dr. Prasad, B.V.L.S. wrote:

> Hi, (Axel) ...I am sorry. I didnt pay attention to the email addresses.
>
> I successfully compiled cint. (on two arch, X86_64(g++-v3.4.6) and i586(g++ 4.1.2)
>
> tried testing makecint/complex demo example.
> I did the following steps:
>
> 1) makecint -mk mkcmplx -o Complex -H Complex.h -C++ Complex.C
> 2) make -f mkcmplx
> Here I am getting the following error:
> *****************************************************************************
> gcc -DG__CXXLINK_ON -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2 -m64  -fPIC    -o G__setup.o -c /home/parisodh/public_html/bosonline/cgi-bin/cint//main/G__setup.c
> /home/parisodh/public_html/bosonline/cgi-bin/cint/cint  -w0 -zComplex -nG__cpp_Complex.cxx  -D__MAKECINT__ -DG__MAKECINT  -c-1 -A -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO   Complex.h
> g++ -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2 -m64  -fPIC  -DG__GNUREADLINE    -c G__cpp_Complex.cxx
> g++ -O2 -m64   -o Complex  G__cpp_Complex.o   G__setup.o /usr/lib64/libreadline.a /usr/lib64/libncurses.a -L/home/parisodh/public_html/bosonline/cgi-bin/cint/ -lcint -lm -ldl  
> /root/bin/../lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.text+0x21): In function `_start':
> : undefined reference to `main'
> /home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `completion_matches'
> /home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `readline'
> /home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `rl_attempted_completion_function'
> /home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `add_history'
> /home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `rl_basic_word_break_characters'
> collect2: ld returned 1 exit status
> make: *** [Complex] Error 1
> ******************************************************************************************************
> when does this error come ? where am I doing wrong?
> FYI, I am using Linux. X86_64 arch, g++ -v-3.4.6.
>
> Then I used:i586 and Linux, with G++-v 4.1.2 ...
> the following error I got:
> *****************************************************************************************************
> g++ -I/home/bosdev/downloads/cint-5.16.19//inc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2  -DG__GNUREADLINE    -c G__cpp_Complex.cxx
> G__cpp_Complex.cxx: In function ‘void G__cpp_setup_func2()’:
> G__cpp_Complex.cxx:514: error: overloaded function with no contextual type information
> G__cpp_Complex.cxx:520: error: overloaded function with no contextual type information
> G__cpp_Complex.cxx:526: error: ‘real’ was not declared in this scope
> G__cpp_Complex.cxx:532: error: ‘imag’ was not declared in this scope
> make: *** [G__cpp_Complex.o] Error 1
> ******************************************************************************************************
>
> thanks for any help.
> Prasad.
>
>
>
>       ___________________________________________________________
> Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
> now.
> http://uk.answers.yahoo.com/ 
>
>






      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 


Re: Error with Complex/Makecint example

by Axel Naumann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Prasad,

I cannot reproduce this; for me it just works. On what platform, with
which compiler version do you see it fail?

Cheers, Axel.

Dr. Prasad, B.V.L.S. wrote:

> Hi Axel,
>  
> further to your suggestion, I cvs checked out the latest cint.
> Still no luck. I am getting the following error: Could you pl. look into it  and let me know where I am going wrong. Thank you,
> *******************************************************************************************************************
> parisodh@... [~/public_html/bosonline/cgi-bin/cint/demo/makecint/Complex]# makecint -mk mkcmplx -o Complex -H Complex.h -C++ Complex.C
> ##########################################################################
> # makecint : interpreter-compiler for cint (UNIX version)
> # Copyright(c) 1995~2007 Masaharu Goto. Mailing list: cint@...
> ##########################################################################
> Run 'make -f mkcmplx' to compile the object
> parisodh@... [~/public_html/bosonline/cgi-bin/cint/demo/makecint/Complex]# make -f mkcmplx
> gcc -O2 -m64  -fPIC      -c -o /home/parisodh/public_html/bosonline/cgi-bin/cint//main/G__main.o /home/parisodh/public_html/bosonline/cgi-bin/cint//main/G__main.c
> gcc -DG__CXXLINK_ON -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2 -m64  -fPIC    -o G__setup.o -c /home/parisodh/public_html/bosonline/cgi-bin/cint//main/G__setup.c
> g++  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2 -m64  -fPIC  -DG__GNUREADLINE -o Complex.o -c Complex.C
> /home/parisodh/public_html/bosonline/cgi-bin/cint/cint  -w0 -zComplex -nG__cpp_Complex.cxx  -D__MAKECINT__ -DG__MAKECINT  -c-1 -A -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO   Complex.h
> Error: Symbol __BEGIN_DECLS#define__need_size_t#define__need_NULL#include is not defined in current scope  FILE:/usr/include/stdio.h LINE:46
> Error: Symbol stddef is not defined in current scope  FILE:/usr/include/stdio.h LINE:46
> Error: Failed to evaluate stddef.h
> Error: Symbol #include is not defined in current scope  FILE:/usr/include/stdio.h LINE:46
> Error: Symbol bits is not defined in current scope  FILE:/usr/include/stdio.h LINE:46
> Error: Symbol types is not defined in current scope  FILE:/usr/include/stdio.h LINE:46
> Error: Failed to evaluate types.h
> Error: operator '/' divided by zero FILE:/usr/include/stdio.h LINE:46
> Error: Symbol #define__need_FILE#define__need___FILE#endif#if!defined__FILE_defined is not defined in current scope  FILE:/usr/include/stdio.h LINE:46
> !!!Removing G__cpp_Complex.cxx G__cpp_Complex.h !!!
> make: *** [G__cpp_Complex.cxx] Error 1
>
> ************************************************
> 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, 22 August, 2007 11:18:30 AM
> Subject: Re: [CINT] Error with Complex/Makecint example
>
> Hi Prasad,
>
> this is fixed in CVS; I will upload a new release next week (binaries +
> source) but you can already extract if from CVS. Please check the CINT
> web page for info on how to do that.
>
> Cheers, Axel.
>
> Dr. Prasad, B.V.L.S. wrote:
>> Hi, (Axel) ...I am sorry. I didnt pay attention to the email addresses.
>>
>> I successfully compiled cint. (on two arch, X86_64(g++-v3.4.6) and i586(g++ 4.1.2)
>>
>> tried testing makecint/complex demo example.
>> I did the following steps:
>>
>> 1) makecint -mk mkcmplx -o Complex -H Complex.h -C++ Complex.C
>> 2) make -f mkcmplx
>> Here I am getting the following error:
>> *****************************************************************************
>> gcc -DG__CXXLINK_ON -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2 -m64  -fPIC    -o G__setup.o -c /home/parisodh/public_html/bosonline/cgi-bin/cint//main/G__setup.c
>> /home/parisodh/public_html/bosonline/cgi-bin/cint/cint  -w0 -zComplex -nG__cpp_Complex.cxx  -D__MAKECINT__ -DG__MAKECINT  -c-1 -A -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO   Complex.h
>> g++ -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2 -m64  -fPIC  -DG__GNUREADLINE    -c G__cpp_Complex.cxx
>> g++ -O2 -m64   -o Complex  G__cpp_Complex.o   G__setup.o /usr/lib64/libreadline.a /usr/lib64/libncurses.a -L/home/parisodh/public_html/bosonline/cgi-bin/cint/ -lcint -lm -ldl  
>> /root/bin/../lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.text+0x21): In function `_start':
>> : undefined reference to `main'
>> /home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `completion_matches'
>> /home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `readline'
>> /home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `rl_attempted_completion_function'
>> /home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `add_history'
>> /home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `rl_basic_word_break_characters'
>> collect2: ld returned 1 exit status
>> make: *** [Complex] Error 1
>> ******************************************************************************************************
>> when does this error come ? where am I doing wrong?
>> FYI, I am using Linux. X86_64 arch, g++ -v-3.4.6.
>>
>> Then I used:i586 and Linux, with G++-v 4.1.2 ...
>> the following error I got:
>> *****************************************************************************************************
>> g++ -I/home/bosdev/downloads/cint-5.16.19//inc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2  -DG__GNUREADLINE    -c G__cpp_Complex.cxx
>> G__cpp_Complex.cxx: In function ‘void G__cpp_setup_func2()’:
>> G__cpp_Complex.cxx:514: error: overloaded function with no contextual type information
>> G__cpp_Complex.cxx:520: error: overloaded function with no contextual type information
>> G__cpp_Complex.cxx:526: error: ‘real’ was not declared in this scope
>> G__cpp_Complex.cxx:532: error: ‘imag’ was not declared in this scope
>> make: *** [G__cpp_Complex.o] Error 1
>> ******************************************************************************************************
>>
>> thanks for any help.
>> Prasad.
>>
>>
>>
>>       ___________________________________________________________
>> Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
>> now.
>> http://uk.answers.yahoo.com/ 
>>
>>
>
>
>
>
>
>
>       ___________________________________________________________
> Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
> now.
> http://uk.answers.yahoo.com/ 
>
>


Parent Message unknown Re: Error with Complex/Makecint example

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

Reply to Author | View Threaded | Show Only this Message

I did a cvs update and it worked now.  (for two compiler: 3.4.6 and 4.1.2.
Thank you,
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: Monday, 27 August, 2007 3:22:57 AM
Subject: Re: [CINT] Error with Complex/Makecint example

Hi Prasad,

I cannot reproduce this; for me it just works. On what platform, with
which compiler version do you see it fail?

Cheers, Axel.

Dr. Prasad, B.V.L.S. wrote:

> Hi Axel,
>  
> further to your suggestion, I cvs checked out the latest cint.
> Still no luck. I am getting the following error: Could you pl. look into it  and let me know where I am going wrong. Thank you,
> *******************************************************************************************************************
> parisodh@... [~/public_html/bosonline/cgi-bin/cint/demo/makecint/Complex]# makecint -mk mkcmplx -o Complex -H Complex.h -C++ Complex.C
> ##########################################################################
> # makecint : interpreter-compiler for cint (UNIX version)
> # Copyright(c) 1995~2007 Masaharu Goto. Mailing list: cint@...
> ##########################################################################
> Run 'make -f mkcmplx' to compile the object
> parisodh@... [~/public_html/bosonline/cgi-bin/cint/demo/makecint/Complex]# make -f mkcmplx
> gcc -O2 -m64  -fPIC      -c -o /home/parisodh/public_html/bosonline/cgi-bin/cint//main/G__main.o /home/parisodh/public_html/bosonline/cgi-bin/cint//main/G__main.c
> gcc -DG__CXXLINK_ON -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2 -m64  -fPIC    -o G__setup.o -c /home/parisodh/public_html/bosonline/cgi-bin/cint//main/G__setup.c
> g++  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2 -m64  -fPIC  -DG__GNUREADLINE -o Complex.o -c Complex.C
> /home/parisodh/public_html/bosonline/cgi-bin/cint/cint  -w0 -zComplex -nG__cpp_Complex.cxx  -D__MAKECINT__ -DG__MAKECINT  -c-1 -A -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO   Complex.h
> Error: Symbol __BEGIN_DECLS#define__need_size_t#define__need_NULL#include is not defined in current scope  FILE:/usr/include/stdio.h LINE:46
> Error: Symbol stddef is not defined in current scope  FILE:/usr/include/stdio.h LINE:46
> Error: Failed to evaluate stddef.h
> Error: Symbol #include is not defined in current scope  FILE:/usr/include/stdio.h LINE:46
> Error: Symbol bits is not defined in current scope  FILE:/usr/include/stdio.h LINE:46
> Error: Symbol types is not defined in current scope  FILE:/usr/include/stdio.h LINE:46
> Error: Failed to evaluate types.h
> Error: operator '/' divided by zero FILE:/usr/include/stdio.h LINE:46
> Error: Symbol #define__need_FILE#define__need___FILE#endif#if!defined__FILE_defined is not defined in current scope  FILE:/usr/include/stdio.h LINE:46
> !!!Removing G__cpp_Complex.cxx G__cpp_Complex.h !!!
> make: *** [G__cpp_Complex.cxx] Error 1
>
> ************************************************
> 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, 22 August, 2007 11:18:30 AM
> Subject: Re: [CINT] Error with Complex/Makecint example
>
> Hi Prasad,
>
> this is fixed in CVS; I will upload a new release next week (binaries +
> source) but you can already extract if from CVS. Please check the CINT
> web page for info on how to do that.
>
> Cheers, Axel.
>
> Dr. Prasad, B.V.L.S. wrote:
>> Hi, (Axel) ...I am sorry. I didnt pay attention to the email addresses.
>>
>> I successfully compiled cint. (on two arch, X86_64(g++-v3.4.6) and i586(g++ 4.1.2)
>>
>> tried testing makecint/complex demo example.
>> I did the following steps:
>>
>> 1) makecint -mk mkcmplx -o Complex -H Complex.h -C++ Complex.C
>> 2) make -f mkcmplx
>> Here I am getting the following error:
>> *****************************************************************************
>> gcc -DG__CXXLINK_ON -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2 -m64  -fPIC    -o G__setup.o -c /home/parisodh/public_html/bosonline/cgi-bin/cint//main/G__setup.c
>> /home/parisodh/public_html/bosonline/cgi-bin/cint/cint  -w0 -zComplex -nG__cpp_Complex.cxx  -D__MAKECINT__ -DG__MAKECINT  -c-1 -A -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO   Complex.h
>> g++ -I/home/parisodh/public_html/bosonline/cgi-bin/cint//inc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2 -m64  -fPIC  -DG__GNUREADLINE    -c G__cpp_Complex.cxx
>> g++ -O2 -m64   -o Complex  G__cpp_Complex.o   G__setup.o /usr/lib64/libreadline.a /usr/lib64/libncurses.a -L/home/parisodh/public_html/bosonline/cgi-bin/cint/ -lcint -lm -ldl  
>> /root/bin/../lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.text+0x21): In function `_start':
>> : undefined reference to `main'
>> /home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `completion_matches'
>> /home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `readline'
>> /home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `rl_attempted_completion_function'
>> /home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `add_history'
>> /home/parisodh/public_html/bosonline/cgi-bin/cint//libcint.so: undefined reference to `rl_basic_word_break_characters'
>> collect2: ld returned 1 exit status
>> make: *** [Complex] Error 1
>> ******************************************************************************************************
>> when does this error come ? where am I doing wrong?
>> FYI, I am using Linux. X86_64 arch, g++ -v-3.4.6.
>>
>> Then I used:i586 and Linux, with G++-v 4.1.2 ...
>> the following error I got:
>> *****************************************************************************************************
>> g++ -I/home/bosdev/downloads/cint-5.16.19//inc  -DG__SHAREDLIB -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO  -O2  -DG__GNUREADLINE    -c G__cpp_Complex.cxx
>> G__cpp_Complex.cxx: In function ‘void G__cpp_setup_func2()’:
>> G__cpp_Complex.cxx:514: error: overloaded function with no contextual type information
>> G__cpp_Complex.cxx:520: error: overloaded function with no contextual type information
>> G__cpp_Complex.cxx:526: error: ‘real’ was not declared in this scope
>> G__cpp_Complex.cxx:532: error: ‘imag’ was not declared in this scope
>> make: *** [G__cpp_Complex.o] Error 1
>> ******************************************************************************************************
>>
>> thanks for any help.
>> Prasad.
>>
>>
>>
>>       ___________________________________________________________
>> Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
>> now.
>> http://uk.answers.yahoo.com/ 
>>
>>
>
>
>
>
>
>
>       ___________________________________________________________
> Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
> now.
> http://uk.answers.yahoo.com/ 
>
>





      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/