Page 1 of 2 12 LastLast
Results 1 to 15 of 17

Thread: help for pro*c

  1. #1
    Join Date
    May 2003
    Posts
    12

    Thumbs up Unanswered: help for pro*c

    hi, i am new to pro*c. under solaris8 and oracle8, i get no error when i proc sample.pc and so i get sample.c file. but i get error message when gcc sample.c.

    the error message is:
    Undefined first referenced
    symbol in file
    sqlcxt /var/tmp//ccshYiQL.o
    ld: fatal: Symbol referencing errors. No output written to a.out
    collect2: ld returned 1 exit status

    can anyone give me any help???
    thanks a lot!

    my email address is :lcpeng@mail.sportscn.com

  2. #2
    Join Date
    Apr 2003
    Location
    Chennai
    Posts
    19

    Re: help for pro*c

    would u like to migrate u r Pro*C application to Java.....


    mail us

    Assu_pete
    Aslam

  3. #3
    Join Date
    May 2003
    Posts
    12

    Re: help for pro*c

    Originally posted by assu_pete
    would u like to migrate u r Pro*C application to Java.....


    mail us

    Assu_pete
    it is the not decision i can make. The develop environment has been decided.

    thank u

  4. #4
    Join Date
    May 2003
    Location
    Dublin, Ireland
    Posts
    44

    Re: help for pro*c

    You are missing a library (libsql8.a) in your link.
    Are you using Oracle make file? All necessary libraries are defined there.



    Originally posted by penglc
    hi, i am new to pro*c. under solaris8 and oracle8, i get no error when i proc sample.pc and so i get sample.c file. but i get error message when gcc sample.c.

    the error message is:
    Undefined first referenced
    symbol in file
    sqlcxt /var/tmp//ccshYiQL.o
    ld: fatal: Symbol referencing errors. No output written to a.out
    collect2: ld returned 1 exit status

    can anyone give me any help???
    thanks a lot!

    my email address is :lcpeng@mail.sportscn.com

  5. #5
    Join Date
    May 2003
    Posts
    12
    I just use the gcc like this:
    gcc sample.c.

    In the Environment Variables there is an item:
    LD_LIBRARY_PATH=/export/home/oracle/OraHome1/lib:/usr/openwin/lib,and the library (libsql8.a) is in this directory.I do not know whether it is enough, if not what should i do?

    thank u for your kind help!

  6. #6
    Join Date
    May 2003
    Posts
    12
    And would you please tell me how to use Oracle make file?
    I used to program in windows.

    Thanks a lot!

  7. #7
    Join Date
    Jan 2003
    Location
    Woking
    Posts
    107
    Originally posted by penglc
    And would you please tell me how to use Oracle make file?
    I used to program in windows.

    Thanks a lot!

    Hi,

    To use the Oracle provided make file, u need use the following compilation method.

    make -f proc.mk EXE=your_file OBJS=your_file.o build

    Note that your .pc file and .mk file are in the current directory
    and the name of your pc file is your_file.pc

    Hope it Helps.
    nn

  8. #8
    Join Date
    May 2003
    Posts
    12
    I will try,thank u for your goodness!

    *_*

  9. #9
    Join Date
    Apr 2003
    Location
    Chennai
    Posts
    19

    juss call us/mailus

    If u find any probles regarding migration, or any technical problems regarding Pro*c ....feel free to mail us or juss call us ...

    support@wayne-burt.com
    91+44+2435 6151,6161

    Assu_pete
    Aslam

  10. #10
    Join Date
    May 2003
    Posts
    12

    Re: juss call us/mailus

    Originally posted by assu_pete
    If u find any probles regarding migration, or any technical problems regarding Pro*c ....feel free to mail us or juss call us ...

    support@wayne-burt.com
    91+44+2435 6151,6161

    Assu_pete
    I will,

    Thanks !

  11. #11
    Join Date
    May 2003
    Posts
    12
    I find demo_proc.mk file,and run like this:
    $ make -f demo_proc.mk build EXE=sample3 OBJS=sample3.o
    get the error message:
    cc -xO3 -Xa -mr -xstrconst -xchip=pentium_pro -K PIC -DPRECOMP -I. -I/export/home/oracle/OraHome1/precomp/public -I/export/home/oracle/OraHome1/rdbms/public -I/export/home/oracle/OraHome1/rdbms/demo -I/export/home/oracle/OraHome1/plsql/public -I/export/home/oracle/OraHome1/network/public -DSLMXMX_ENABLE -DSLTS_ENABLE -D_REENTRANT -DUNIFIED_INTEL -DSOL_X86 -DSVR4 -Di386 -c sample3.c
    cc: PIC: No such file or directory
    cc: unrecognized option `-Xa'
    cc: unrecognized option `-K'
    cc: language chip=pentium_pro not recognized
    make: *** [sample3.o] Error 1

    what can I do next?
    thanks!

  12. #12
    Join Date
    May 2003
    Posts
    12
    I find demo_proc.mk file,and run like this:
    $ make -f demo_proc.mk build EXE=sample3 OBJS=sample3.o
    get the error message:
    cc -xO3 -Xa -mr -xstrconst -xchip=pentium_pro -K PIC -DPRECOMP -I. -I/export/home/oracle/OraHome1/precomp/public -I/export/home/oracle/OraHome1/rdbms/public -I/export/home/oracle/OraHome1/rdbms/demo -I/export/home/oracle/OraHome1/plsql/public -I/export/home/oracle/OraHome1/network/public -DSLMXMX_ENABLE -DSLTS_ENABLE -D_REENTRANT -DUNIFIED_INTEL -DSOL_X86 -DSVR4 -Di386 -c sample3.c
    cc: PIC: No such file or directory
    cc: unrecognized option `-Xa'
    cc: unrecognized option `-K'
    cc: language chip=pentium_pro not recognized
    make: *** [sample3.o] Error 1

    what can I do next?
    thanks!

  13. #13
    Join Date
    May 2003
    Posts
    12
    Does the error come from the demo_proc.mk ?
    Or there are additional requirements for make command,such as version?

  14. #14
    Join Date
    Jan 2003
    Location
    Woking
    Posts
    107
    Originally posted by penglc
    Does the error come from the demo_proc.mk ?
    Or there are additional requirements for make command,such as version?
    Hi,
    Yes this is make file error. Why dont You confirm the paths present in the make file.

    Hope it Helps
    nn

  15. #15
    Join Date
    May 2003
    Posts
    12
    Oh,I will try.
    Thank u!
    Good luck to u!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •