- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem compilation pro*c dans HP-UX (B.11.23)
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2016 03:24 AM
11-26-2016 03:24 AM
Problem compilation pro*c dans HP-UX (B.11.23)
Hello everyone,
I am trying to compile a code written in c and pro*c on HP-UX 11.23 and oracle 10g
my code is composed of 2 files :
1- dbtools.pc : its compilation with proc is ok and give me dbtools.c
2- src.c : call the functions in dbtools.c
I compile mycode src.c with the commande : aCC -lclntsh +DD64 -w src.c -o xpl
the compilation show the error :
error #2140: too many arguments in function call
sqlcxt((void **)0, &sqlctx, &sqlstm, &sqlfpn);
! this function is written by proc compiler in dbtools.pc like this :
extern sqlcxt ( void **, unsigned int *, struct sqlexd *, struct sqlcxp * );
So for this i added all the oracle's lib in the $LD_LIBRARY_PATH but this error still exists and i am blocked
Can someone help please !
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2016 07:15 AM - edited 11-26-2016 07:18 AM
11-26-2016 07:15 AM - edited 11-26-2016 07:18 AM
Re: Problem compilation pro*c dans HP-UX (B.11.23)
>I am trying to compile code written in C
> aCC -lclntsh +DD64 -w src.c
If in C, you should use cc to compile.
Libraries should go last. Also remove -w to see if any warnings help you find your error.
You may want to generate a .i file to see if that gives you a clue: -E -.i
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2016 06:41 AM
11-28-2016 06:41 AM
Re: Problem compilation pro*c dans HP-UX (B.11.23)
Hi Dennis Handly thanx for replay,
We resolved that problem by :
- compile the proc code with : proc code=ansi_c dbtools.pc
- enable the ld_library_path with chatr
- compile add the path the library : aCC +DD+4 -L $path_libraries -lname ..... -I$Path_includes ....... -L$ORACLE_HOME -lclntsh......
I hope no one will be trapped in this error :)