1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unable to compile Pro*C file in Visual studio 2008

Discussion in 'C' started by Rajashri, Apr 30, 2008.

  1. Rajashri

    Rajashri New Member

    Joined:
    Apr 30, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    VS 2008 is giving the following error while trying to compile a PRO*C file.



    1>------ Build started: Project: t_l001, Configuration: Debug Win32 ------
    1>Performing Custom Build Step
    1>Setting environment for using Microsoft Visual Studio 2008 x86 tools.
    1>The system cannot find the path specified.
    1>Pro*C/C++: Release 10.1.0.2.0 - Production on Wed Apr 30 18:49:17 2008
    1>Copyright (c) 1982, 2004, Oracle. All rights reserved.
    1>System default option values taken from: c:\Oracle\product\10.1.0\Client_1\precomp\admin\pcscfg.cfg
    1>Syntax error at line 540, column 1, file C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h:
    1>Error at line 540, column 1 in file C:\Program Files\Microsoft Visual Studio 9.0
    1>\VC\include\stdio.h
    1>__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_ARGLIST_EX(int, __RETURN_POLICY_SAME, _S
    1>WPRINTFS_DEPRECATED _CRTIMP, __swprintf_l, __vswprintf_l, _vswprintf_s_l, _Pre_n
    1>otnull_ _Post_z_ wchar_t, , wchar_t, _Dest, _In_z_ _Printf_format_string_ const
    1>wchar_t *, _Format, _locale_t, _Plocinfo)
    1>1
    1>PCC-S-02201, Encountered the symbol "wchar_t" when expecting one of the followin
    1>g:
    1> , )
    1>The symbol ")" was substituted for "wchar_t" to continue.
    1>Syntax error at line 540, column 241, file C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h:
    1>Error at line 540, column 241 in file C:\Program Files\Microsoft Visual Studio 9
    1>.0\VC\include\stdio.h
    1>__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_ARGLIST_EX(int, __RETURN_POLICY_SAME, _S
    1>WPRINTFS_DEPRECATED _CRTIMP, __swprintf_l, __vswprintf_l, _vswprintf_s_l, _Pre_n
    1>otnull_ _Post_z_ wchar_t, , wchar_t, _Dest, _In_z_ _Printf_format_string_ const
    1>wchar_t *, _Format, _locale_t, _Plocinfo)
    1>................................................................................
    1>................................................................................
    1>................................................................................
    1>1
    1>PCC-S-02201, Encountered the symbol "wchar_t" when expecting one of the followin
    1>g:
    1> ; , = ( [
    1>The symbol ";" was substituted for "wchar_t" to continue.
    1>Syntax error at line 540, column 1, file C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h:
    1>Error at line 540, column 1 in file C:\Program Files\Microsoft Visual Studio 9.0
    1>\VC\include\stdio.h
    1>__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_ARGLIST_EX(int, __RETURN_POLICY_SAME, _S
    1>WPRINTFS_DEPRECATED _CRTIMP, __swprintf_l, __vswprintf_l, _vswprintf_s_l, _Pre_n
    1>otnull_ _Post_z_ wchar_t, , wchar_t, _Dest, _In_z_ _Printf_format_string_ const
    1>wchar_t *, _Format, _locale_t, _Plocinfo)
    1>1
    1>PCC-S-02201, Encountered the symbol "_Plocinfo" when expecting one of the follow
    1>ing:
    1> ; , = ( [
    1>Error at line 0, column 0 in file D:\CoreAPEX\Development\Proration55\Proration\
    1>tcn\t_l003.pc
    1>PCC-F-02102, Fatal error while doing C preprocessing
    1>Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step"
    1>Build log was saved at "file://d:\CoreAPEX\Development\winapex\t_l001\t_l001\Debug\BuildLog.htm"
    1>t_l001 - 1 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



    My custom build settings are as follows :
    command line is as follows for the ".pc" file:

    call vcvars32.bat
    call D:\CoreAPEX\Development\winapex\b_g010_debug\b_g010_debug\ProrationEnvironment.bat
    proc userid=%PRAXIS_ID% D:\CoreAPEX\Development\Proration55\Proration\tcn\$(InputName).pc define=DOS oraca=yes def_sqlcode=yes nls_local=yes unsafe_null=yes dbms=v8 sqlcheck=full prefetch=30 parse=full maxopencursors=50 include=D:\CoreAPEX\Development\Proration55\PRORATION\tcn include=D:\CoreAPEX\Development\Proration55\PRORATION\tcn include="$(VCInstallDir)Include" include=C:\oracle\product\10.1.0\Client_1\xdk\include include=C:\oracle\product\10.1.0\Client_1\RDBMS\demo include=C:\oracle\product\10.1.0\Client_1\precomp\public


    outputs is as follows for the ".pc" file :
    D:\CoreAPEX\Development\Proration55\Proration\tcn\$(InputName).c

    Please advice as to what could be done inorder to compile the file properly.

    Thanx in advance.

    Regards,
    Rajashri
     

Share This Page