VISUAL C++로 PRO*C COMPILE하기.

제품 : PRECOMPILERS
작성날짜 : 1998-11-16
Visual C++를 이용하여 pro*c를 이용하는 방법을 정리한다.
아래의 내용은 Visual C++ 5.0과 windows95용 Pro*c 8.0을
기준으로 기술 되었다.
아래의 방법은 새로운 project를 생성해서 이곳에 Sample.pc
를 precompile하고 compile, link하여 실행 화일을 만드는
과정을 설명한다.
1. 새로운 project를 생성한다.
- Menu의 File을 선택후에 New를 선택해서 Project tab의
Win32 Console Application을 선택하고 Projce name은
Sample, Location은 c:\Sample이라고 한다.
- Ok를 선택하면 c:\Sample directory가 생성이 되었다.
2. Sample.pc file을 project에 insert한다.
- Menu의 Project의 Add to Project->Files을 선택한후에
c:\Sample\Sample.pc를 선택한다.
- 다른 directory에 있는 것을 사용해도 가능하나 이후에
Custom Build시에 Path처리시 설명에 혼돈이 올수 있어서
Sample.pc를 해당 directory(c:\Sample\)로 copy하여
실행하였다.
3. Sample.c를 등록해준다.
- 위와 같은 방법으로 Menu의 Project의 Add to Project->
Files을 선택한 후에 c:\Sample\Sample.c를 입력한다.
- 이때 Sample.c가 존재하지 않으므로
"C:\Sample\Sample.c
The specified file does not exist.
Do you want to add a reference to the project anyway?"
라는 message가 생긴다. Yes를 선택한다.
- 해당 project에 Sample.c가 등록되는 것을 확인할수 있다.
4. Precompile단계에 대한 등록을 해준다.
- Menu의 Project의 Settings를 선택한후에 왼쪽 위의
Settings For: 를 All Configurations 선택한후에 아래
부분의 Sample.pc를 선택한다.
- 오른쪽의 tab들중에 "Custom Build를 선택한다.
- Build command[s]에 다음과 같이 입력한다.
proc $(ProjDir)\$(InputName).pc include=c:\orawin95\proc80\
c\include
(oracle home이 c:\orawin95인 경우이다.)
- 아래쪽의 Output Files에 $(ProjDir)\$(InputName).c라고
입력한다.
- 이작업을 제일 아래의 Directory와 Files button을 이용하면
보다 쉽게 입력할수 있다.
5. Sqllib80.lib를 Project에 넣어준다.
- 2번 작업의 Sample.pc를 넣어준것과 같은 방법이다.
- 위치는 %oracle_home%\pro80\Lib\Msvc\Sqllib80.lib이다.
6. Pro*C/C++에서 사용하는 Header file이 있는 directory를
등록한다.
- Menu의 Tolls의 options를 선택한다.
- "Directories" tab을 선택한후에 Show directories for :
를 "Include files"로 선택한 후에 아래의 Directories난에
%oracle_home%\proc80\c\include를 등록하여 준다.
7. Build후에 실행한다.
만약 precompile이 된 Sample.c가 이미 존재 했다면은 4번 작업을
생략해도 된다.

Hi.
There is similar problem with Instant Client 10.x
And there is solution :)
In case of Instant Client 10.x the problem was solved after reinitializing VC8 environment variables running vcvars32.bat
Check out these post Re: Why Oracle !0g Server and Oracle 10g Client is Not Connecting.......

Similar Messages

  • Fatal Error while retrieving data from Visual Fox Pro using OLE-DB UDS

    Hello all,
    in a customer project we connected a Visual Fox Pro Database via OLE-DB UDS.
    Whenever data is retrieved, a fatal error shows up:
    Fatal Error: Error occurred while processing data stream, null
    Although the data is retrieved correctly!
    MII used: 11.5
    UDS-Server: xMII OLE DB UDS, version 4.0.1.10
    This is the log from the UDS-Server:
    [02/29/2008-11:22:40.195] oleDB [P:4404, T:4792, Framework,   ERROR] 0x0      {extra params}: {5}     [LHDSChannelHandler.cpp @ 488, CLHDSChannelHandler::ExecuteIOCP]
    [02/29/2008-11:22:40.195] oleDB [P:4404, T:4792, Framework,   ERROR] 0x17009     Exception occured: pid = 5, original = 5, data = <ExecutionContext><param name="MODE" value="QUERY"/><param name="QUERY" value="SELECT artikelnr FROM artikel "/><param name="ENDDATE" value="1204280560164"/><param name="ROWCOUNT" value="100"/><param name="STARTDATE" value="1204276960164"/></ExecutionContext>.     [LHDSChannelHandler.cpp @ 493, CLHDSChannelHandler::ExecuteIOCP]
    ********** Start of Exception Stack Trace **********
         1)     [02/29/2008-11:22:40.210] oleDB [P:4404, T:4792,       UDS, ] 0x0     HRESULT: 0x80004005 [Unspecified error]     [BaseOleDbMode.h @ 1133, BaseOleDbMode<class COleDbQuery>::ProcessDynamicResults]
         2)     [02/29/2008-11:22:40.210] oleDB [P:4404, T:4792,       UDS, RETHROW] 0x0     Rethrowing exception.     [BaseOleDbMode.h @ 1211, BaseOleDbMode<class COleDbQuery>::ProcessDynamicResults]
         3)     [02/29/2008-11:22:40.210] oleDB [P:4404, T:4792,       UDS, RETHROW] 0x0     Rethrowing exception.     [Query.cpp @ 107, COleDbQuery::ExecuteOleDbMode]
         4)     [02/29/2008-11:22:40.210] oleDB [P:4404, T:4792,       UDS, RETHROW] 0x0     Rethrowing exception.     [BaseOleDbMode.h @ 381, BaseOleDbMode<class COleDbQuery>::ExecuteMode]
         5)     [02/29/2008-11:22:40.210] oleDB [P:4404, T:4792,       UDS, RETHROW] 0x0     Rethrowing exception over COM.     [LHDSUtil.h @ 1086, lhds::LHDSModeImpl<class COleDbQuery,struct ILHDSMode>::Execute]
         6)     [02/29/2008-11:22:40.210] oleDB [P:4404, T:4792,       UDS, RETHROW] 0x0     Rethrowing exception.     [LHDSUtil.h @ 1124, lhds::LHDSModeImpl<class COleDbQuery,struct ILHDSMode>::Execute]
         7)     [02/29/2008-11:22:40.210] oleDB [P:4404, T:4792, Framework, RETHROW] 0x0     Rethrowing exception over COM.     [LHDSDispatcher.cpp @ 135, CLHDSDispatcher::CallMode]
         8)     [02/29/2008-11:22:40.210] oleDB [P:4404, T:4792,       UDS, RETHROW] 0x0     Rethrowing exception over COM.     [LHDSUtil.h @ 893, lhds::LHDataServerImpl<class CLHOleDbDataServer>::Execute]
         9)     [02/29/2008-11:22:40.210] oleDB [P:4404, T:4792, Framework, ] 0x0     Caught exception over a COM boundry.     [LHDSChannelHandler.cpp @ 566, CLHDSChannelHandler::OnExecute]
         10)     [02/29/2008-11:22:40.210] oleDB [P:4404, T:4792, Framework, RETHROW] 0x0     Rethrowing exception.     [LHDSChannelHandler.cpp @ 574, CLHDSChannelHandler::OnExecute]
         11)     [02/29/2008-11:22:40.210] oleDB [P:4404, T:4792, Framework, RETHROW] 0x0     Rethrowing exception.     [LHDSChannelHandler.cpp @ 502, CLHDSChannelHandler::ExecuteIOCP]
         12)     [02/29/2008-11:22:40.210] oleDB [P:4404, T:4792, Framework, RETHROW] 0x0     Rethrowing exception over COM.     [LHDSChannelHandler.cpp @ 189, CLHDSChannelHandler::Execute]
         13)     [02/29/2008-11:22:40.210] oleDB [P:4404, T:4792,      Host, HANDLED] 0x0     Handled exception.     [ThreadPool.cpp @ 228, ThreadPool::ThreadProc]
    ************** End of Exception Trace **************
    Any help is very much appreciated.
    Regards,
    Matthias
    Edited by: Matthias Wald on Feb 29, 2008 12:12 PM

    Hi Salvatore,
    tried your suggestian but no luck, same error.
    I checked the Version. It shows 4.0.1.10.
    Is there a later version available?
    UDS Settings are (apologize any misspellings):
    Collect Requests                              false
    Log Level                                         Info
    Maximum Concurrent Connections    1000
    Pool Size                                         5
    Port                                                 8087
    Runtime Mode                                  Service
    Service Dependencies                       Eventlog
    Service Passowrd                              *******
    Service Startup                                 Manual
    Service User                                     .\LocalSystem
    Shutdown Timeout                            10
    Stack Size                                       0
    Threading Model                               MTA
    Trusted Requesters                         
    Use IOCP                                        true
    Connection String                            Provider=VFPOLEDB.1;Data Source=D:\Daten;Mode=Share Deny None;Extended Properties="";User ID="";Password="";Mask Password=False;Cache Authentication=False;Encrypt Password=False;Collating Sequence=MACHINE;DSN="";DELETED=True;CODEPAGE=1252;MVCOUNT=16384;ENGINEBEHAVIOR=90;TABLEVALIDATE=3;REFRESH=5;VARCHARMAPPING=False;ANSI=True;REPROCESS=5
    Persistent Connectikon                     true
    Show Affected Rows                         Minimal
    Variant Representation                      String
    I have changed MTA to STA and also tried other admin user for service without luck.
    Any other hints?

  • Pro*C compiled on 11g should load libclntsh.so of 10g

    Is it possible that a program compiled with ORACLE 11g Pro*C compiler to load libclntsh.so of 10g ?
    My problem is source compiled on 10g works fine for even when connected to 11g database. But it get crashed with compiled on 11g and run in same environment.
    Can any please help?

    Pro*C doesn't compile the program. It just creates a .c file.
    Then you compile and link it with the library libclntsh.so
    libclntsh.so -> libclntsh.so.11.1
    libclntsh.so.10.1 -> libclntsh.so
    To fool the compiler you have to COPY the data of the library:
    mkdir ~/1
    cd ~/1
    cat $ORACLE_HOME/lib/libclntsh.so > libclntsh.so.10.1
    ln -s libclntsh.so.10.1 libclntsh.so
    gcc -L$HOME/1 -lclntshBTW, what do you mean by crashing? If you try to run the compiled program and it can't find the library, it's not a crash

  • CR XI not responding when connecting to a large visual fox pro database

    Using Microsoft FoxPro VFP Driver (*.dbf) I cannot connect to a large (100mb) visual fox pro database.  Any suggestions would be welcome.

    Hi Tim,
    First thing to do is upgrade for free to CR XI R2 SP 6:
    https://smpdl.sap-ag.de/~sapidp/012002523100011802732008E/crxir2_sp4_full_build.exe
    https://smpdl.sap-ag.de/~sapidp/012002523100015859952009E/crxir2win_sp6.exe
    Use your XI keycode when installing.
    Not Responding is actually misleading, It's how Windows works, CR is waiting for the database info, tables, fields, etc. to be returned from the DB file and Windows defaults to Not Responding while this is going on. If you wait, and not sure if you did, Windows should return control to CR.
    Try using ODBC or OLE DB to connect also.
    Thank you
    Don

  • I'm having this message when I try to export my video from Premiere Pro:  "Error compiling movie. Unknown error"

    I'm having this message when i try to export my video from Premiere Pro:
    "Error compiling movie. Unknown error" Do anybody knows what to do?

    1st, I moved your message to the correct forum
    2nd, More information needed for someone to help... please click below and provide the requested information
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840
    3rd, Error Compiling Movie... some past discussions and ideas
    -http://helpx.adobe.com/premiere-pro/kb/error-compiling-movie-rendering-or.html
    -http://helpx.adobe.com/premiere-elements/kb/error-error-compiling-movie-render.html
    -and nested sequences http://forums.adobe.com/thread/955172
    -and WMV files frame rate http://forums.adobe.com/message/4629210

  • How to integrate Pro C compiler and liberies in order to compile Pro C in oracle 9i

    Hello ,
    My name is Ron .
    I already installed The Database Server oracle 9i in my machine
    i do not install the Oracle 9i client only the Database server.
    but when i'm trying to compile Pro C sample program
    i get an error:
    operable program or batch file.
    Error executing c:\winnt\system32\cmd.exe.
    From what i know , oracle 9i Pro C liberay files must be in location "C:\Oracle\Ora92\precomp\lib\msvc" in my machine .
    but this directory not exist and also the liberies are missing.
    Do i miss something any installation of the oracle client?
    Do i need to install also the oracle 9i client in order to have the Pro C compiler and all the
    Pro C liberies .?
    thanks in advance.
    Ron Bar yosef

    Pro*C is a client side tool ans so will be available when you install the Oracle client.

  • Pro*C compiling/linking

    I have a Pro*C EXE program on Sun that compiles/links and works fine on that Unix box, which has Pro*C compiler and Oracle 8.05 installed. Apparantly this EXE program is refering to Oracle libraries ar run time. If I take this program on other Sun computer, it gives me an error "ld.so.1: dpn_config: fatal: libclntsh.so.1.0: open failed: No such file or directory"
    How can I create a Pro*C EXE program that will run on similar Sun box that has no Oracle or Pro*C compiler installed?
    There must be some linking parameters in make file I can make use of.
    Thanks for your help.
    Kishor

    Sorry alphasof, but you'll need to have the minimum oracle client software installed on every sun box you move the app to. More than just the libraries are involved, the whole TNS name lookup stuff gets installed, etc. It's more than just trying to statically link in the oracle libraries to your executable.
    If you install the oracle client software, you'll have no problems moving the executable.

  • Unable to locate the Pro Cobol Compiler

    I'm installed Oracle 9i client using Oracle 9.2.0.2.0 for HP-UX.
    The Pro Cobol compiler is not present in any of the installation options.
    Where can I download Oracle Pro Cobol compiler for Oracle 9.2.0.2.0 for HP-UX?
    G-

    after some research I found out that the Pro Cobol compiler is not available on the HP Itanium for version 9.2.0.1, 9.2.0.2 and 9.2.0.3. I will not be available until 9.2.0.4 or later per Oracle on Metalink

  • What mac apps that similar to microsoft visual fox pro ?

    Is there anyone knows what mac apps that similar to microsoft visual fox pro?
    Or maybe visual fox pro for mac?
    I heard that VFP 3.0 or 2.6 are design for mac, but I doubt that.
    Is there any suggestion for this issue?
    Thanks before.

    The closet thing Apple has to that is FileMaker Pro and/or Bento

  • Compatibility of MS SURFACE PRO with executable (*.exe) compiled with Visual Fox Pro 6.0 (or eventually upgraded to VFPro 9)

    I develop application in VFPro V. 6.0 wich run OK in Windows up to Vista and 7.
    I am considering to buy SURFACE 3 PRO and I would like to know if I can run VFPro 6.0 on SURFACE (my V. 6.0 or - if upgrading it to VFPro 9) .
    In other words can I us SURFACE 3 PRO like I am using now Windows Vista & Winows 7 ????
    Thanks
    My Tel is 0103462030

    Hi,
    Thank you for your post. But your issue is out of support range of VS General Question forum which mainly discusses the usage issue of Visual Studio IDE such as
    WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because your question is related to Visual FoxPro, I suggest you to consult your issue on Visual FoxPro General forum:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=visualfoxprogeneral  for better support.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Problem with pro*c compilation and linking

    Hi all,
    I have a problem running the pro*c program on an windows environment.
    I have oracle9i and visual studio .net. Ya kinda strange about the combo, but need to live with it.
    I create a .pc file and precompile it using oracle pro*c/c++ precompiler. so now I got the .c file.
    I used .net command line to compile this .c file
    It gave me the .obj file. Now I am getting a link error. I am not sure how I need to link the linkfile.
    Let me know if you have any suggestions.
    Thank you,
    -Raghu

    Make sure you are including the Pro*C library. The platform docs tell you explicitly what the library name is. I think for 9i it is called orasql9.lib.

  • Pro*C compilation error - bulk insert statement

    Guys, I am screwed up!
    There's this Pro*C application that I am working on. I made some changes in some of the functions and when I compile using Pro*C pre-compiler (Version 9), it throws an error in one of the modules that I have not even touched.
    Following is the error:
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>
    ++: Release 9.0.1.1.1 - Production on Fri May 25 20:35:30 2007
    (c) Copyright 2001 Oracle Corporation. All rights reserved.
    System default option values taken from: C:\oracle\ora90\precomp\admin\pcscfg.cfg
    Error at line 1512, column 1 in file D:\Siemens\GABS-R\Source\GSM-R_Rating\RTLRa
    ting\multimainrate_supp1_cug.pc
    EXEC SQL FOR :record_roaming
    1
    PLS-S-00382, expression is of wrong type
    Error at line 1512, column 1 in file D:\Siemens\GABS-R\Source\GSM-R_Rating\RTLRa
    ting\multimainrate_supp1_cug.pc
    EXEC SQL FOR :record_roaming
    1
    PLS-S-00000, SQL Statement ignored
    Semantic error at line 1512, column 1, file D:\Siemens\GABS-R\Source\GSM-R_Rating\RTLRating\multimainrate_supp1_cug.pc:
    EXEC SQL FOR :record_roaming
    1
    PCC-S-02346, PL/SQL found semantic errors
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    The location it is referring to is:
    EXEC SQL FOR :record_roaming
    INSERT /*+ PARALLEL(GT_RATED_ROAMING_CALLS) */
    INTO GT_RATED_ROAMING_CALLS
    (GF_SEQ_NO,
    GF_CALL_PRODUCT,
    GF_CDR_TYPE,
    GF_REC_NO,
    GF_REC_STAT,
    GF_INTER_REC_NO,
    GF_SS_REC_NO,
    GF_SS_CODE,
    GF_CALLING_NUM,
    GF_CALLED_NUM,
    GF_CALLING_IMSI,
    GF_CALLED_IMSI,
    GF_CALLED_NUM_TON,
    GF_DIALLED_DIGITS,
    GF_LAC,
    GF_CELL,
    GF_IN_CKTGRP,
    GF_IN_CKTID,
    GF_OUT_CKTGRP,
    GF_OUT_CKTID,
    GF_BS_TYPE,
    GF_BS_CODE,
    GF_DURATION,
    GF_THREAD_ID,
    GF_CARRIER,
    GF_AIR_TIM_CHARGE,
    GF_TOLL_CHARGE,
    GF_TOLL_UNITS,
    GF_ROAM_SURCHARGE,
    GF_ROAMING_CHARGES,
    GF_ADDITIONAL_CHARGES,
    GF_CUST_ID,
    GF_CONT_ID,
    GF_BILL_PRD,
    GF_STATUS,
    GF_ERROR_CODE,
    GF_RECON_STAT_LANDLINE,
    GF_RECON_STAT_ROAMING,
    GF_CALLING_IMEI,
    GF_CALLED_IMEI,
    GF_MSC_ID,
    GF_ACTION_CODE,
    GF_MSRN,
    GF_LONG_DISTANCE_AIR_CHRG,
    gf_home_zone_surcharge,
    GF_SWITCH_CODE,
    GF_BILL_DATE,
    GF_CITY_CODE,
    GF_BILL_FREQ,
    GF_CALL_START_DATE,
    GF_CALL_END_DATE,
    GF_SMS_TEXT,
    GF_TIME_STAMP_AVAILABLE,
    GF_TYPE_OF_CALL,
    GF_PEAK_OFFPEAK,
    GF_PROCESS_DATE,
    GF_MATCH_DATA,
    GF_ORIG_ZONE_CODE,
    GF_DEST_ZONE_CODE,
    GF_PRICE_PLAN_CODE
    values
    (:gt_rated_roaming_calls,sysdate,:roaming_details_match_data,:l_gf_rcd_zone,:l_gf_price_plan);
    Pls note that the host variables match exactly the number of fields in the INTO clause (anyway, the error in such a case is different).
    Please save my soul!
    Sanchit

    Hi, check Metalink Note 451413.1 Pro*C Build Fails With Error PCC-02014 on File /usr/include/standards.h
    I did workarround #2, and worked.
    *+<Moderator edi t- deleted MOS Doc content - pl do NOT post contents of MOS Docs - this is a violation of your Support agreement>+*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Linux 6.1/Oracle 8.1.5 Pro C compilation core dumps

    Linux installation did not place stdarg.h or stddef.h in the /usr/include directory for some reaon. I located different copies in other directories and have created symobolic links to them all in the end. BUT all result in the following error when I attempt to make sample1.pc in $ORACLE_HOME/precomp/demo/proc. Has anyone got any ideas how I can fix this problem.
    Yours hopefully Kev
    make -f demo_proc.mk sample1
    gmake -f /oracle/app/oracle/product/8.1.5/precomp/demo/proc/demo_proc.mk
    OBJS=sample1.o EXE=sample1 build
    gmake[1]: Entering directory `/oracle/app/oracle/product/8.1.5/precomp/demo/proc'
    proc iname=sample1
    Pro*C/C++: Release 8.1.5.0.0 - Production on Sun Jan 9 17:02:05 2000
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    System default option values taken from:
    /oracle/app/oracle/product/8.1.5/precomp/admin/pcscfg.cfg
    gmake[1]: *** [sample1.o] Segmentation fault (core dumped)
    gmake[1]: Leaving directory `/oracle/app/oracle/product/8.1.5/precomp/demo/proc'
    make: *** [sample1] Error 2
    null

    Thanks for your input. But having investiagted further I have made progress.
    On one of the FAQ docs listed throughout the Linux Forum I found an example of what should be in the pcscfg.cfg file. Once this was in place I then had, /usr/bin/ld cannot find -laio (or the file /usr/lib/libaio.a). To get a clean(ish) compile, I created a symbolic link from libc.a to libaio.a which is crude but was effective. I had a working Pro C exe.
    I understand that the second patch solves the libaio.a prob as well as others. But a colleague has installed it and had to regress it, due to more damaging problems he listed but I cannot recall at this time.
    Thanks again.

  • Problem while Pro*C compilation on Unix after 10g database migration.

    I am getting the following error while compiling Pro*C code after 10g Database migration,
    ld: 0706-006 Cannot find or open library file: -l trace10
    ld:open(): A file or directory in the path name does not exist.
    I am using a Makefile for compilation and this makes direct reference to library -ltrace10
    The $LIBPATH value is : /oracle/app/oracle/product/10.2.0/ora10gdb/lib:/usr/lib:/lib
    Please guide.
    Thanks in advance
    Kaustubh

    I am getting the following error while compiling Pro*C code after 10g Database migration,
    ld: 0706-006 Cannot find or open library file: -l trace10
    ld:open(): A file or directory in the path name does not exist.
    I am using a Makefile for compilation and this makes direct reference to library -ltrace10
    The $LIBPATH value is : /oracle/app/oracle/product/10.2.0/ora10gdb/lib:/usr/lib:/lib
    Please guide.
    Thanks in advance
    Kaustubh

  • Pro*C Compilation Error

    Hi Friends,
    Database Oracle 9i - Pro*C/C++: Release 9.2.0.4.0
    OS - powerpc-ibm-aix5.3.0.0
    C Compiler - GNU gcc version 4.2.0
    I am using the below command to compile "daemon.pc"
    /usr/bin/make -f proc.mk build OBJS=daemon.o EXE=daemon
    The errors I am facing while compiling "daemon.pc" are --
    GGC heuristics: param ggc-min-expand=100 param ggc-min-heapsize=131072
    Compiler executable checksum: 390e64d91265cc859d3a136f414a35d0
    daemon.c:117: warning: type defaults to 'int' in declaration of 'sqlcxt'
    daemon.c:119: warning: type defaults to 'int' in declaration of 'sqlcx2t'
    daemon.c:121: warning: type defaults to 'int' in declaration of 'sqlbuft'
    daemon.c:122: warning: type defaults to 'int' in declaration of 'sqlgs2t'
    daemon.c:123: warning: type defaults to 'int' in declaration of 'sqlorat'
    daemon.c: In function 'connect_error':
    daemon.c:281: warning: implicit declaration of function 'sqlglm'
    daemon.c:285: warning: implicit declaration of function 'exit'
    daemon.c:285: warning: incompatible implicit declaration of built-in function 'exit'
    daemon.c: In function 'sql_error':
    daemon.c:300: warning: too few arguments for format
    daemon.c: At top level:
    daemon.c:305: warning: return type defaults to 'int'
    daemon.c: In function 'main':
    daemon.c:482: warning: implicit declaration of function 'system'
    daemon.c:745: warning: incompatible implicit declaration of built-in function 'exit'
    daemon.c: At top level:
    daemon.c:114: warning: 'sqlstm' defined but not used
    daemon.c:126: warning: 'IAPSUCC' defined but not used
    daemon.c:127: warning: 'IAPFAIL' defined but not used
    daemon.c:128: warning: 'IAPFTL' defined but not used
    =============================================================
    After compiling when I try to execute "daemon", the following error appears -
    Memory fault(coredump)
    =============================================================
    When I debug "daemon" with "dbx" debugger, I get the following errors -
    dbx daemon core
    Type 'help' for help.
    [using memory image in core]
    reading symbolic information ...internal error: expected char ',', found ';12,64,384;;'
    internal error: expected char ';', found ',384;;'
    internal error: index("384;;", ':') failed
    Segmentation fault in sqlglmt at 0x9000000057f795c ($t1)
    0x9000000057f795c (sqlglmt+0x94) 9c030001 stbu r0,0x1(r3)
    (dbx) where
    sqlglmt(??, ??, ??, ??) at 0x9000000057f795c
    sqlglm(??, ??, ??) at 0x9000000057f7070
    unnamed block in main(), line 281 in "daemon.c"
    unnamed block in main(), line 281 in "daemon.c"
    unnamed block in main(), line 281 in "daemon.c"
    main(), line 281 in "daemon.c"
    =============================================================
    Please help me identifying the issue. Even a small hint would help me solve the problem. Thank you very much in advance.
    Regards,
    Abhishek Jain

    What are includes you have used in the .PC file ..? are you missing some standard headers ..??
    Try without using make files
    PROC file_name.pc Check any errors on this.
    Then link with -lclntsh -lexc -lmld -lrt -laio -lm -lxti -lpthread
    regards
    Prajith

Maybe you are looking for

  • New to Adobe  Please evaluate my build

    Hi there. I have been lurking for the past week and thought I would get some advice. I have learned a ton just by reading the guidance section by Harm. Good stuff. Answered a lot of questions. I would appreciate it if you guys would look over my curr

  • CS2 Help Files Problem - Different than those Previously listed

    I installed PSCS2 and the installation appeared to go OK and for the most part the program runs as I would expect. The issue I have is with the help files. When I try to access the help files the Adobe Help Center opens but the only help available is

  • How to get Videos in itunes/ipod??

    Maybe I'm just a moron, but how do I get videos to upload to itunes? First of all, when I click over to the movies tab in itunes, the screen is black. Unlike the music section, where there are songs listed, or at least a blank page, the screen is sim

  • Macbook won't boot after Update, mach_kernel error, can't reinstall

    I have a Macbook 13" with a 1.8ghz C2D with 2gig ram. I attempted to install the update to 10.4.10 from 10.4.9 today and when it rebooted it went straight to kernel panic mode (circle with slash through it with a flashing file folder with a question

  • A problem with connecting my mixer to the laptop

    Hi. i got my new Dynacord powermate 600-3 mixer last night and i connected to my macbook pro using USB wire it works perfectly with video recording softweres like photo booth but it does not work with grage band or adobe audition i can see that there