Results 1 to 2 of 2

Thread: Oci

  1. #1
    Join Date
    Sep 2004
    Posts
    8

    Question Unanswered: Oci

    i am trying to run cdemo1.c found in oracle sample,i am getting following errors:

    error C2660: 'olog' : function does not take 9 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(115) : error C2660: 'oopen' : function does not take 7 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(120) : error C2660: 'oopen' : function does not take 7 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(127) : error C2660: 'ocof' : function does not take 1 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(135) : error C2660: 'oparse' : function does not take 5 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(143) : error C2660: 'odefin' : function does not take 12 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(148) : error C2660: 'oexfet' : function does not take 4 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(163) : error C2660: 'oparse' : function does not take 5 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(172) : error C2660: 'odescr' : function does not take 10 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(175) : error C2660: 'odescr' : function does not take 10 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(182) : error C2660: 'oparse' : function does not take 5 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(189) : error C2660: 'oparse' : function does not take 5 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(202) : error C2660: 'obndrv' : function does not take 11 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(204) : error C2660: 'obndrv' : function does not take 11 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(206) : error C2660: 'obndrv' : function does not take 11 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(209) : error C2660: 'obndrv' : function does not take 11 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(212) : error C2660: 'obndrv' : function does not take 11 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(228) : error C2660: 'obndrn' : function does not take 10 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(238) : error C2660: 'odescr' : function does not take 10 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(259) : error C2660: 'odefin' : function does not take 12 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(316) : error C2660: 'oexec' : function does not take 1 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(317) : error C2660: 'ofetch' : function does not take 1 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(333) : error C2660: 'oexec' : function does not take 1 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(341) : error C2660: 'oexec' : function does not take 1 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(349) : error C2660: 'ocom' : function does not take 1 parameters
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(360) : warning C4508: 'main' : function should return a value; 'void' return type assumed
    C:\Program Files\Microsoft Visual Studio\MyProjects\mydata\mydata.cpp(372) : error C2660: 'oerhms' : function does not take 4 parameters
    Error executing cl.exe.

    mydata.exe - 26 error(s), 1 warning(s)

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    11
    Looks like you're missing an include file (#include) at the top of mydata.cpp or rather you're including the function declarations from an old copy of the header file for them. Basically the declarations for all those functions (probably in some header file somewhere) don't agree with how you're calling the functions.

    And, by the way (as a side note), the main function in a C app is traditionally written:
    Code:
    int main (int argc, char *argv[])
        {
         ... 
        }
    mike hodgson
    database administrator
    mallesons stephen jaques
    http://www.mallesons.com

    'It is a far, far better thing that I do, than I have ever done; it is a far, far better rest that I go to than I have ever known.'

Posting Permissions

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