OCI c++ how to ... HELP HELP

Hi,
I am new with OCI so I need some help. I included all
header files I need and I specified -lclntsh but I am
getting an error message from my compiler/linker :
/oracle/8.0.5/lib/libclntsh.so: undefined reference to
'slpmprodstab'
collect2: ld resturned 1 exit status
My command line looks like this
g++ -o test test.o oconnection.o -lclntsh -L/oracle/8.0.5/lib -
L/oralce/8.0.5/rdbms/lib
I think I'm missing a bunch of things ...
Thanks
Eddy
null

Hi,
for my work I stripped down the OCI demo makefiles from oracle.
this one compiles a program "ora1.c" to "ora1". note that this is
for c, not c++, but it might help:
----- File: Makefile -----------------------------------
INCLUDE=-I$(ORACLE_HOME)/rdbms/demo \
-I$(ORACLE_HOME)/rdbms/public \
-I$(ORACLE_HOME)/plsql/public \
-I$(ORACLE_HOME)/network/public
LDFLAGS=-L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/rdbms/lib
DEF_OPT=$(ORACLE_HOME)/rdbms/lib/defopt.o
SSCOREED=$(ORACLE_HOME)/lib/sscoreed.o
OCISHAREDLIBS=$(ORACLE_HOME)/lib/libclntsh.so \
$(ORACLE_HOME)/lib/nautab.o \
$(ORACLE_HOME)/lib/naeet.o \
$(ORACLE_HOME)/lib/naect.o \
-lclient -lvsn -lmm -lnetv2 -lnttcp \
-lvsn -lcommon -lgeneric -lepc -lcore4 \
-lnlsrtl3 -lnsl -lm -ldl -lnetv2 -lnttcp \
-lnetwork -lncr -lsql
ora1: ora1.o
$(CC) $(LDFLAGS) -o ora1 ora1.o $(DEF_OPT) $(SSCOREED) \
$(OCISHAREDLIBS)
ora1.o: ora1.c
$(CC) -Wall -O2 $(INCLUDE) -c ora1.c -o ora1.o
clean:
$(RM) -f ora1.o ora1
You also might have a look at
$ORACLE_HOME/rdbms/demo/demo_rdbms.mk
hope this gets you started
Peter
Eddy Hahn (guest) wrote:
: Hi,
: I am new with OCI so I need some help. I included all
: header files I need and I specified -lclntsh but I am
: getting an error message from my compiler/linker :
: /oracle/8.0.5/lib/libclntsh.so: undefined reference to
: 'slpmprodstab'
: collect2: ld resturned 1 exit status
: My command line looks like this
: g++ -o test test.o oconnection.o -lclntsh -L/oracle/8.0.5/lib -
: L/oralce/8.0.5/rdbms/lib
: I think I'm missing a bunch of things ...
: Thanks
: Eddy
null

Similar Messages

  • How do I Help Apple Care Stop Warring with Each Other and Fix the Problem with My iPhone that They Acknowledge Creating?

    How Do I Help Apple US & Apple Europe Stop Warring With Each Other And Fix The Problem They Created?
    PROBLEM
    Apple will not replace, as promised, the iPhone 5 (A1429 GSM model) that they gave me in London, UK, with an iPhone 5 (A1429 CDMA model).
    BACKGROUND
    My iPhone 5 (A1429 CDMA model) was purchased this year in September on an existing Verizon Wireless (VZW) line using an upgrade. The purchase took place in California and the product was picked up using Apple Personal Pickup through the Cerritos Apple Retail Store. I will refer to this phone at my "original" phone.
    The original phone was taken into the Apple Store Regent Street in London, England, UK on November 15, 2012. The reason for this visit was that my original phone's camera would not focus.
    The Apple Store Regent Street verified there was a hardware problem but was unable to replace the part.
    The Apple Store Regent Street had me call the US AppleCare. At first they denied support, but then a supervisor, name can be provided upon request, approved the replacement of my original phone with an iPhone 5 (A1429 GSM model) as a temporary solution until I got back in the US. And approved that the GSM model would be replaced with a CDMA model when I came back to the US. I will refer to the GSM model as the "replacement". They gave me the case number --------.
    The Apple Store Regent Street gave me the replacement and took the original. The first replacement did not work for reasons I do not understand. They switched out the replacement several times until they got one that worked on the T-Mobile nano SIM card that I had purchased in England, UK. Please refer to the repair IDs below to track the progression of phones given to me at the Apple Store Regent Street:
    Repair ID ----------- (Nov 15)
    Repair ID ----------- (Nov 16)
    Repair ID ----------- (Nov 16)
    The following case number was either created in the UK or France between November 15 to November 24. Case number -----------
    On November 19, 2012, I went to France and purchased an Orange nano SIM card. The phone would not activate like the first two repair IDs above.
    On November 24, 2012, I went to the Apple Store Les Quatre Temps. The Genius told me that my CDMA phone should not have been replaced with a GSM model in the UK and that this was clearly Apple's fault. They had me call the AppleCare UK.
    My issue was escalated to a tier 2 UK AppleCare agent. His contact information can be provided upon request. He gave me the case number -----------.
    The UK tier 2 agent became upset when he heard that I was calling from France and that the France Apple Store or France AppleCare were not helping me. He told me that my CDMA phone should not have been replaced with a GSM model in the UK and that this was clearly Apple's fault.
    The UK tier 2 agent said he was working with engineers to resolve my problem and would call me back the next day on November 25, 2012.
    While at the Apple Store Les Quatre Temps, a Genius switched the phone given to from repair ID ----------- with a new one that worked with the French nano SIM card.
    Also, while at the Apple Store Les Quatre Temps, I initiated a call with AppleCare US to get assistance because it seems that AppleCare UK was more upset that France was not addressing the issue rather than helping me. I have email correspondance with the AppleCare US representative.
    A Genius at the Apple Store Les Quatre Temps switched the replacement with a new GSM model that worked on the French SIM card but would not work if restored, received a software update, or had the SIM card changed. This is the same temporary solution I received from the Apple Store Regent Street in the UK.
    By this point, I had spent between 12-14 hours in Apple Store or on the phone with an AppleCare representative.
    Upon arriving in the US, I went to my local Apple Store Brea Mall to have the replacement switched with a CDMA model. They could not support me. He told me that my CDMA phone should not have been replaced with a GSM model in the UK and that this was clearly Apple's fault. My instructions were to call AppleCare US again.
    My call with AppleCare US was escalated to a Senior Advisor, name can be provided upon request, and they gave me the case number -----------. After being on the phone with him for over an hour, his instructions were to call the Apple Store Regent Street and tell them to review my latest notes. They were to process a refund for a full retail priced iPhone 5 64BG black onto my credit card so that I could use that money to buy a new iPhone 5 64GB black at the Apple Store Brea Mall to reoslve the problem.
    The Apple Store Regent Street did not process my refund. He, name can be provided upon request, told me that the AppleCare US did not do a good job reviewing my case, that they were incapable of getting to the bottom of it like they were, and instructed me to call AppleCare US and tell them to review this case number and this repair id. I asked if he read the notes from the AppleCare US Senior Advisor and he would not confirm nor deny. When I offered to give him the case number he accepted but it seemed like would do no good. Our call was disconnected. When I tried calling back the stores automated system was turned on and I could not get back through.
    Now I have the full retail price of an iPhone 5 64GB black CDMA on my credit card and Apple will not process the refund as they said they would.
    I've, at this point, spent between 14-16 hours at Apple Stores or on the phone with AppleCare representatives, and still do not have the problem resolved.
    SOLUTION
    AppleCare US and AppleCare Europe need to resolve their internal family issues without further impacting their customers.
    Apple is to process a refund to my credit card for the cost of a full retail priced iPhone 5 64GB black.
    DESIRED OUTCOMES
    I have an iPhone 5 (A1429 CDMA model) that works in the US on VZW as it did before I received the replacement phone in the UK.
    Apple covers the cost of the solution because I did not create the problem.
    Apple resolves their internal issue without costing me more time, energy, or money.
    This becomes a case study for AppleCare so that future customers are not impacted like I have been by their support system.
    Does anyone have recommendations for me?
    Thank you!
    <Edited by Host>

    Thanks, but I've been on the phone with AppleCare US (where I am and live) and AppleCare UK. They continue bouncing me back and forth without helping resolve the problem.
    Perhaps someones knows how to further escalate the issue at Apple?

  • I lost my status from Administrator to standard. Now I have no way of accessing anything into my mac. How did this happen? And how can I go back to being a admin? I'm the only account on my mac and now I cant access anything. Help Help!!1

    I lost my status from administrator to standard and now I have no access to anything on my mac. I'm the only account on my mac. How did this happen? and what can I do to fix this? Help Help!!!

    anastasia808,
    which model Mac do you have, and which version of OS X is installed on it?

  • How to make Help view well on both laptops and desktops

    Hi -- I'm trying to learn RoboHelp 7 and just created my first WebHelp project. I want to show it to a friend, but don't have a server I can publish it to, so I copied all the files onto my flash drive and put it on my laptop. It all works fine, which is a relief -- however, the custom colors are way off, and some of the screenshots are now too big, so the user would have to scroll (which can be annoying). I created it on my desktop and have been looking at it on a larger monitor (1680x1050), but the laptop is old (1024x768). The thing is, a lot of people might have to view it on 800x600.
    I couldn't find any information in RH's Help about how I should have set it up so that it views well on different systems. I'm hoping someone could please advise me as to what I should have done, and if there's anything I can do now to fix it, or point me to some information. I used Arial 10 pt for the text, and now it looks 12 pt. Should I have made it 8 pt? Is there a rule for how large an image should be to be viewed on a laptop and a desktop?
    One last thing, it's too large to put on a CD, so is does anyone know how to make this into an executable?
    Thanks in advance for any help you can give!
    Daryl

    Hi Daryl
    I use an eBook compiler to convert WebHelp to an executable file. You might investigate eBook compilers for that bit. However, I'm not sure how that would help you since a compiler will do little more than to take a swarm of WebHelp files and store them in a wrapper to create a single file. Generally you will end up with something that although it exists as a single file, is larger than what is inside.
    Are you SURE it's too big for CD? CD will hold 650 megs (700 if you buy the extended types).
    On the screen size issue WebHelp itself should adapt fine. Probably it's the images you are concerned with. And the general rule of thumb is to capture images at a reasonable size to begin with. Never EVER just insert a big ole image into RoboHelp and grab the sizing handle to make it smaller. It will still consume a larger amount of space and the quality will suffer badly. So the best approach is to copy the image at a reasonable size to begin with. Something that may fit nicely in the Topic Pane area as it is presented in the space provided by the lowest common denominator. In your case I believe you said that many are still at 800x600.
    Your 10 point text will still be 10 points at a smaller resolution. It will just look a bit different.
    Hopefully this helps... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • FW: [Adobe Reader] I want my credit card information to be removed from Adobe's file and I can't find a phone number to contact someone in your company, how come, please help!  Lucie

    What a dumb answer, the payment is done and charged already,
    ADOBE DOES NEED MY CREDIT CARD INFO ANYMORE, PLEASE REMOVE IT
    FROM YOUR DATABASE AS I CANNOT DO IT MYSELF.  It is quite annoying
    to be controlled like this, please confirm that my request has been answering
    with intelligence please.
    Lucie Lévesque
    Date: Mon, 8 Dec 2014 08:09:59 -0800
    From: [email protected]
    To: [email protected]
    Subject:  I want my credit card information to be removed from Adobe's file and I can't find a phone number to contact someone in your company, how come, please help!  Lucie
        I want my credit card information to be removed from Adobe's file and I can't find a phone number to contact someone in your company, how come, please help!  Lucie
        created by Bernd Alheit in Adobe Reader - View the full discussion
    Adobe needs the credit card information for the payments.
         If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/6995243#6995243 and clicking ‘Correct’ below the answer
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/6995243#6995243
         To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
         Start a new discussion in Adobe Reader by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

    Adobe Reader is a FREE program, so you would not enter a credit card
    If you have a subscription to a PAID program, removing your credit card information would cause that program to stop working when you stop paying for your subscription
    If that is what you want, here is the information on how to cancel
    Cancel http://helpx.adobe.com/x-productkb/policy-pricing/return-cancel-or-change-order.html
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • HT1657 I have rented some movies and have them in itunes. I want to move them to my iphone but don't know how can someone help?

    I have rented some movies and have them in itunes. I want to move them to my iphone but don't know how can someone help?

    http://support.apple.com/kb/HT1390
    Regards.

  • Siri stopped working. I see message, "HOw can I help you" but do not hear any beeps or response indicating that my voice message is being heard. I cant find Siri on Settings. should it be there? what can i do to get it working again? thanks much

    Question? Siri stopped working. I see the written message ," How can I help you", but my voice does not seem to pick up. No beeps at all.
    I tried going to Settings to look for Siri and it is not listed there. Should it be?? Not sure what is wrong or how i can get my voice activation to work on Siri . thanks for your help

    Try a reset: Hold down the home button along with the sleep/wake button until you see the apple, then let go.

  • I'm having a lot of issues with firefox and cannot figure out how to get help. It began when I updated to 13. I get all kinds of ad popups, I cannot play one

    I'm having a lot of issues with firefox and cannot figure out how to get help. It began when I updated to 13. I get all kinds of ad popups, I cannot play one game on FaceBook called Farm Town at all, and I keep getting an AVG popup about cookies that I cannot get rid of. These issues are causing me to use Chrome very often even though I like Fox better. I've searched and searched how to get help and cannot find anything. How does one get personal technical help?? These issues do not happen in Chrome at all. Thanks.

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/security/scanner/en-us/default.aspx - Microsoft Safety Scanner
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    You can also do a check for a rootkit infection with TDSSKiller.
    *http://support.kaspersky.com/viruses/solutions?qid=208280684
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • HT4061 i us iphon in syria and i have problem in the mic how can you help me

    i us iphon in syria and i have problem in the mic how can you help me

    Try to Reset it (hold down the home and sleep buttons, ignore the red off slider, wait for the Apple logo, let go of the buttons).
    If that does not work try Restoring it in iTunes.
    Still no go? You will need to get it serviced.

  • How to get help with refund for in app purchase

    I downloaded the free app "Bakery Story" without realizing it was an app that allowed the user (in this case, my child) to run up a bill very quickly with in-app purchases (using my real money instead of the play money within the game). As soon as I received the statement from Apple about these unexpected purchases, I enabled the parental controls that block purchases from within apps like this. I am trying to use Apple website to find the rightbplace to request a refund on those purchases, but I only get so far with the express lane before I get a "server not responding" message. Any ideas for how to get help? (clicking the Report a Problem" link in the invoice email doesn't work either (and my WI fi Internet connection seems fine).

    These Links may be Helpful
    Mac Apps Store Customer Service
    http://www.apple.com/support/mac/app-store/contact.html?form=account
    iTunes Customer Service Contact
    http://www.apple.com/support/itunes/contact.html

  • How to enable workflow notification mailer and how can it help me?

    Hello
    I am on 12.0.6
    I want to know how to enablke workflow notification mailer and how it can help me?
    Do i need to seperately license it?
    is there any patch that i have to apply in order to use it
    Please advice and help me with my query

    Hi,
    I want to know how to enablke workflow notification mailer and how it can help me?See the documents referenced in this thread.
    Workflow Configuration and Troubleshoot
    Workflow Configuration and Troubleshoot
    Do i need to seperately license it?No.
    is there any patch that i have to apply in order to use itSee the thread referenced above.
    Regards,
    Hussein

  • How to give Help

    Hi All,
    Can anybody suggest me how to give help of Screen Painter form. Like Context help F1 in Help menu.
    Means suppose i open Sales order system form of SAP and then i go to in Context help then i get the help of that form.
    Like this i also want to give help in context help of User define form of Screen Painter.
    Thanks,

    Thats fine,  now what we have to do is limit the code only to ur user form. Just paste the following.
    Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)
    If pVal.MenuUID = "275" And pVal.BeforeAction = True Then
    If SBO_Appln.Forms.ActiveForm.TypeEx = "UserFormType" Then 'this is the form type of ur user form
    Dim psi As New ProcessStartInfo()
    psi.UseShellExecute = True
    psi.FileName = "C:\Documents and Settings\Harish Patil\Desktop\Checkbox and Option button\ChkOpt\ChkOpt\New_HTML_Help.chm"
    Process.Start(psi)
    BubbleEvent = False
    End If
    End If
    Hope with this we'r done.. If so award the points and close the thread.
    Regards,
    Vasu Natari.
    Edited by: vasu natari on Aug 12, 2008 11:59 AM
    Edited by: vasu natari on Aug 12, 2008 12:02 PM

  • How i can help to translate Mozilla FireFox (Web browser) in Uzbek language?

    How i can help to translate Mozilla FireFox (Web browser) in Uzbek language?

    Also [https://wiki.mozilla.org/L10n:Teams:uz]

  • My friend is unable to open CR2 files in bridge but I can in CS6. How can I help him

    My friend is unable to open CR2 files in bridge but I can in CS6. How can I help him

    What version of Bridge and Camera Raw is your friend using?  And what camera is this from?
    Each camera must be supported specifically and older versions of Adobe products don’t get updated for newer cameras.
    Your CS6 is obviously new enough and has been updated to a new enough version of the Camera Raw plug-in but perhaps theirs is older or hasn’t been updated.
    Here is a list of cameras that Adobe supports along with the version of the Camera Raw plug-in that is needed to read them:
    http://helpx.adobe.com/creative-suite/kb/camera-raw-plug-supported-cameras.html
    For versions older than CS6, the highest CR version is +1 of the CS version—CS5 can use CR6.x but not CR 7 or 8.
    The exception is CS6 which is still be sold by Adobe so can be updated to CR8 even though it initially shipped with CR7.

  • Ermm mine ipad 2 screen is little bit crack so how can apple help me .., ermm mine ipad 2 screen is little bit crack so how can apple help me ..

    ermm mine ipad 2 screen is little bit crack so how can apple help me ..

    Unless Apple determines this is a hardware defect or they make an exception if caused by accidental damage, Apple will not help you as in exchanging or repairing the iPad for free.

Maybe you are looking for

  • My ipod touch 4th gen don't show up on itunes.

    Hi! I really need help! After I updated my ipod touch 4th gen from 4.3.3 to 5.0.1, it doesn't show up on itunes even if i already connected it to my PC. ( i use windows XP). On my ipod's screen there's a figure which I think it probably says to conne

  • Query about Temporary Tablespaces

    Why Data Manipulation Language (DML) locks are never acquired on the data of temporary tables? Any detailed explanations with justifications will be great. Thanks in advance.

  • Authentication of users for an applicaion..

    Hi.. I created some users in a table..and I want only those users created by me to access the application..Is this possible..If yes.How should i do it?..If no.. is there any other method to authenticate. Regards, rags

  • Vista drivers w/o Disk?

    I cannot locate my install disks, and need to install the bootcamp assistant and drivers for my macbook. Is there a .exe somewhere hidden away on apples support pages that can be downloaded, the only ones I could download claimed they required me to

  • Connection problem with 3rd party software

    I am having a problem with a developer tool (pl/sql developer) in that my connection keeps closing whenver i query a table. i know this sounds like a software problem and nothing to do with oracle, but this happened on my friends machine and after ho