Runtime error after successful compile and link with cl.exe

Finally, got the configuration for cl.exe and link.exe right and got a successful compile and link to produce a dll. Then ran the main method of my Java class. The main method calls the constructor, and loading the class runs the static block which loads the native dll. I get one of those error files of the type hs_err_pid4064.log. The file is as follows:
# An unexpected error has been detected by Java Runtime Environment:
# Internal Error (0xe06d7363), pid=4064, tid=3576
# Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode, sharing windows-x86)
# Problematic frame:
# C [kernel32.dll+0x12aeb]
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
--------------- T H R E A D ---------------
Current thread (0x00395800): JavaThread "main" [_thread_in_native, id=3576, stack(0x003b0000,0x00400000)]
siginfo: ExceptionCode=0xe06d7363, ExceptionInformation=0x19930520 0x003fdf14 0x02de7b04
Registers:
EAX=0x003fde4c, EBX=0x00000000, ECX=0x00000000, EDX=0x02f80600
ESP=0x003fde48, EBP=0x003fde9c, ESI=0x003fdedc, EDI=0x003fdedc
EIP=0x7c812aeb, EFLAGS=0x00000206
Top of Stack: (sp=0x003fde48)
0x003fde48: 02de1de0 e06d7363 00000001 00000000
0x003fde58: 7c812aeb 00000003 19930520 003fdf14
0x003fde68: 02de7b04 02e80087 003fdf14 003fdf28
0x003fde78: 02e99500 00000039 003fde70 00000039
0x003fde88: 003fdec8 02e81a50 02eabf00 003fdf14
0x003fde98: 003fdf28 003fdedc 02dce583 e06d7363
0x003fdea8: 00000001 00000003 003fded0 02a72388
0x003fdeb8: 00000000 e06d7363 00000001 00000000
Instructions: (pc=0x7c812aeb)
0x7c812adb: 8d 7d c4 f3 a5 5f 8d 45 b0 50 ff 15 10 15 80 7c
0x7c812aeb: 5e c9 c2 10 00 85 ff 0f 8e 36 93 ff ff 8b 55 fc
Stack: [0x003b0000,0x00400000], sp=0x003fde48, free space=311k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [kernel32.dll+0x12aeb]
C [summarizer37.dll+0x1e583]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::StubRoutines (1)
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x02a66000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3108, stack(0x02d10000,0x02d60000)]
0x02a58000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2488, stack(0x02cc0000,0x02d10000)]
0x02a56c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=2508, stack(0x02c70000,0x02cc0000)]
0x02a56000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3720, stack(0x02c20000,0x02c70000)]
0x02a51800 JavaThread "Finalizer" daemon [_thread_blocked, id=2968, stack(0x02bd0000,0x02c20000)]
0x02a4d400 JavaThread "Reference Handler" daemon [_thread_blocked, id=600, stack(0x02b80000,0x02bd0000)]
=>0x00395800 JavaThread "main" [_thread_in_native, id=3576, stack(0x003b0000,0x00400000)]
Other Threads:
0x02a4c000 VMThread [stack: 0x02b30000,0x02b80000] [id=2528]
0x02a67000 WatcherThread [stack: 0x02d60000,0x02db0000] [id=1604]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 960K, used 195K [0x22960000, 0x22a60000, 0x22e40000)
eden space 896K, 21% used [0x22960000, 0x22990c38, 0x22a40000)
from space 64K, 0% used [0x22a40000, 0x22a40000, 0x22a50000)
to space 64K, 0% used [0x22a50000, 0x22a50000, 0x22a60000)
tenured generation total 4096K, used 0K [0x22e40000, 0x23240000, 0x26960000)
the space 4096K, 0% used [0x22e40000, 0x22e40000, 0x22e40200, 0x23240000)
compacting perm gen total 12288K, used 22K [0x26960000, 0x27560000, 0x2a960000)
the space 12288K, 0% used [0x26960000, 0x269658c8, 0x26965a00, 0x27560000)
ro space 8192K, 66% used [0x2a960000, 0x2aeb0e10, 0x2aeb1000, 0x2b160000)
rw space 12288K, 52% used [0x2b160000, 0x2b7b04c8, 0x2b7b0600, 0x2bd60000)
Dynamic libraries:
0x00400000 - 0x00423000      C:\Program Files\Java\jdk1.6.0_06\bin\javaw.exe
0x7c900000 - 0x7c9af000      C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f6000      C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f02000      C:\WINDOWS\system32\RPCRT4.dll
0x77fe0000 - 0x77ff1000      C:\WINDOWS\system32\Secur32.dll
0x7e410000 - 0x7e4a1000      C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f59000      C:\WINDOWS\system32\GDI32.dll
0x7c340000 - 0x7c396000      C:\Program Files\Java\jdk1.6.0_06\jre\bin\msvcr71.dll
0x6d870000 - 0x6dac0000      C:\Program Files\Java\jdk1.6.0_06\jre\bin\client\jvm.dll
0x76b40000 - 0x76b6d000      C:\WINDOWS\system32\WINMM.dll
0x6d320000 - 0x6d328000      C:\Program Files\Java\jdk1.6.0_06\jre\bin\hpi.dll
0x76bf0000 - 0x76bfb000      C:\WINDOWS\system32\PSAPI.DLL
0x6d820000 - 0x6d82c000      C:\Program Files\Java\jdk1.6.0_06\jre\bin\verify.dll
0x6d3c0000 - 0x6d3df000      C:\Program Files\Java\jdk1.6.0_06\jre\bin\java.dll
0x6d860000 - 0x6d86f000      C:\Program Files\Java\jdk1.6.0_06\jre\bin\zip.dll
0x10000000 - 0x10006000      D:\Servers\SummarizerServer\native\jsummarizer.dll
0x02db0000 - 0x02df2000      D:\Servers\SummarizerServer\native\summarizer37.dll
0x02e00000 - 0x02f6d000      D:\Servers\SummarizerServer\native\platform37.dll
0x4a800000 - 0x4a893000      D:\Servers\SummarizerServer\native\icuuc30.dll
0x4ad00000 - 0x4b52d000      D:\Servers\SummarizerServer\native\icudt30.dll
0x5b860000 - 0x5b8b5000      C:\WINDOWS\system32\NETAPI32.dll
0x77c10000 - 0x77c68000      C:\WINDOWS\system32\msvcrt.dll
VM Arguments:
jvm_args: -Djava.library.path=native
java_command: com.sra.pipeline.servers.summarizer.JSummarizer
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_06
CLASSPATH=.;C:\Program Files\Java\jre1.6.0_06\lib\ext\QTJava.zip
PATH=D:\Servers\SummarizerServer\native;C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT
USERNAME=Jim Jones
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 3
CPU:total 1 (1 cores per cpu, 1 threads per core) family 15 model 2 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2
Memory: 4k page, physical 1048032k(245796k free), swap 2521804k(1060880k free)
vm_info: Java HotSpot(TM) Client VM (10.0-b22) for windows-x86 JRE (1.6.0_06-b02), built on Mar 25 2008 01:22:05 by "java_re" with MS VC++ 7.1
time: Mon Sep 01 15:22:10 2008
elapsed time: 0 seconds
The dll I'm wrapping is C++ VC++ compiled.
Would like to know what I do to trouble-shoot this error and hope to fix it?
Jim

Using Java print statement was able to show that the my JNI dll was being loaded and that the problem was in the first call to one of my JNI functions. Then by using "DebugBreak()" in that function and gradually moving it down line by line through the function was able to isolate the line causing the problem. Unfortunately it is the line where I call a function from the dll I'm wrapping. See newer thread.

Similar Messages

  • Runtime error after successfull compilation

    Hi,
    I'm trying to compile programs (small stuff for a class) and it all compiles correctly:
    [localhost:~/csci101/hw2] jslootbe% javac -verbose -classpath /Library/Java twowords.java
    [parsing started twowords.java]
    [parsing completed 555ms]
    [loading /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/classes.jar(java/lang/Object.class)]
    [loading /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/classes.jar(java/lang/String.class)]
    [checking twowords]
    [loading /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/classes.jar(java/lang/System.class)]
    [loading /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/classes.jar(java/io/PrintStream.class)]
    [loading /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/classes.jar(java/io/FilterOutputStream.class)]
    [loading /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/classes.jar(java/io/OutputStream.class)]
    [loading /Library/Java/awio/AWIn.class]
    [loading /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/classes.jar(java/lang/StringBuffer.class)]
    [wrote twowords.class]
    [total 1610ms]
    [localhost:~/csci101/hw2] jslootbe%
    but when i try to run the program i get this message:
    [localhost:~/csci101/hw2] jslootbe% java -verbose -cp /Library/Java twowords
    [Opened /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/classes.jar]
    [Opened /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/ui.jar]
    [Opened /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/i18n.jar]
    [Opened /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/sunrsasign.jar]
    Exception in thread "main" java.lang.NoClassDefFoundError: twowords
    [localhost:~/csci101/hw2] jslootbe%
    I'm not sure why it can compile, but then not run the prgram in runtime,
    any help appreciated thanks
    Jule

    aah, thanks a lot that was exactly what i needed..
    thanks, what exactly does the .: do? check under the root in stead of the homedir?
    Jule

  • HT2292 the latest itunes update on my vista laptop brings up R6034 runtime error - after rebooting - uninstalling - reinstalling i have no itunes access. please correct in your updates. there are others with the same error message

    the latest itunes update on my vista laptop brings up R6034 runtime error - after rebooting - uninstalling - reinstalling i have NO itunes access. please correct in your updates. there are others with the same error message   thank you!!

    'The installer has insufficient privileges to modify this file C:\Program Files (x86)\Common Files\Apple\Apple Application Support\Web kit.resources\inspector\Images\Spinner Inactive Selected.gif.'
    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • Is it possible work (compile and link wi

    thout errors) very well one program written and compiled on Linux with gcc command for C program into Labview ? I know Labview support C codes, but I don't know if support some program done on another operating system, like Linux with other compiler (gcc).Is it possible work (compile and link without errors) very well one program written and compiled on Linux with gcc command for C program into Labview ? I know Labview support C codes, but I don't know if support some program done on another operating system, like Linux with other compiler (gcc). Because in Linux we have different device drivers (/dev/*) to access peripherals, like serial port RS-232. However, can I copy source code from Linux to "Call library Functional Node"
    tool ? And work it very well like in Linux before ?

    thout errors) very well one program written and compiled on Linux with gcc command for C program into Labview ? I know Labview support C codes, but I don't know if support some program done on another operating system, like Linux with other compiler (gcc).Hopefully, the differences in the implementations of the language itself would be fairly well documented. Therefore I would suspect that the biggest problem you'll have in this port is when the code starts trying to connect to the outside world--like the serial ports you mentioned.
    Personally, if I had documented C code (or at least a reasonable description of what the code is supposed to do) I would say to heck with CINs and just port the application to LV. You probibly won't spend any more time doing a complete port and the result will be more extensible and maintainable that the C ever was (or could ever be). But that's just me and my aversion to doing things the hard way...
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Compiling and linking C library in C++

    I am using a C library (Solstice FTAM v9.0) in my C++ program. One of the library header files has a declrartion
    short class;
    in one of the structures.
    The C++ compiler (Sun C++ 5.4 on Solaris 8) gives error. What we should do to compile and link this library in C++.

    You can use pointer to this structure without including the header that contains its definition, if it is possible, of course.
    Also, it should be possible to #define class to smth else just before including this header and then #undef'ing it. If this C library comes in binary form, it shouldn't cause any problems since memory layout won't be affected; if it comes in source code form, you can always compile it with -Dclass=smth_else on the command line and reference this foul structure field from your C++ code accordingly.

  • ProC app. compiling and link problem

    Created a Pro*C application called "sample1.pc". Compiled to a get object file ("sample1.o"). Created a library using this object file as follows:
    ar -v -q libshr.a sample1.o
    Wrote a main.c application making a call to one of the extern functions which accesses Oracle through Pro*C calls.
    When I compile and link to my library, I get the following error.
    Undefined first referenced
    symbol in file
    sqlcxt /export/home/mydir/temp/libshr.a(sample1.o
    sqlorat /export/home/mydir/temp/libshr.a(sample1.o
    ld: fatal: Symbol referencing errors. No output written to t
    Following is the cc command given to compile and link:
    cc -o t artest.c -I/export/home/mydir/temp /opt/uxbox/oracle/product/7.3.3.3/lib/libserver.a -lm -lthread -L/export/home/mydir/temp lshr
    Would like to know what needs to be done to successfully call my proC function from "main.c".
    Thanks in advance,
    -NM

    Try including libsql.a which compiling..
    Venkat

  • I get this error message when trying to start Itunes - "Runtime Error! Program: C:\Program Files\iTunes\iTunes.exe  R6034 Anapplication has made an attempt to load the C runtime library incorrectly.  I have tried to have iTunes re-install and correct.

    I get this message when I try to start iTunes
    Runtime Error!
    Program: C:\Program Files\iTunes\iTunes.exe
    R6034
    An application has made an attempt to load the C runtime Library incorrectly.
    I have tried to have iTunes re-install but still get the error.

    Uninstall your existing copy of iTunes. Delete any copies of the iTunesSetup.exe (or iTunes64Setup.exe) installer files from your downloads areas for your web browsers and download a fresh copy of the iTunes installer from the Apple website:
    http://www.apple.com/itunes/download/
    (The current build of the 11.1.4.62 installer was changed a few days ago, which fixed the bulk of the reports of MSVCR80.dll/R6034/APSDaemon.exe/Error-7/AMDS-could-not-start trouble ... but the build number on the installer was not changed. So we're trying to make sure you do the reinstall using a "new good" 11.1.4.62 installer instead of an "old bad".)
    Does the install with the new copy of the installer go through properly? If so, does that clear up the error message?
    If you still have the same error messages cropping up, then try the procedures from the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • Is there anyone at all here who has successfully compiled and deployed an SSRS custom report item in VS2012?

    Is there anyone at all here who has successfully compiled and deployed an SSRS custom report item in VS2012?  Is there a demo out there that actually works in VS2012?  Is there anyone who has actually been able to compile and deploy that
    apparently obsolete Polygons demo?  (Pardon my impatience but I'm running a bit short of time here.)
    After much hacking and googling I was able to get Polygons to compile but I still can't deploy it to the toolbox.  ('The custom report item type PolygonsDesigner is not installed').   I've modified the RSReportDesigner.config
    as instructed but I have no rssrvpolicy.config file on my local machine and
    as yet I have no idea if that is necessary for local development.
    In order to get it to compile I first added the reference  C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.ReportingServices.ProcessingCore.dll to both projects.
    To the PolygonsDesigner Project I also added the references:
    C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.ReportDesigner.Controls.dll
    C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.ReportingServices.Designer.11.0.dll
    C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\Microsoft.ReportingServices.Interfaces.dll
    Are these the correct references?  
    Exactly what software do you need installed on your local machine in addition to VS2012 in order to create a custom control?
    (Designer.11.0 was added per the instructions in reference: https://connect.microsoft.com/VisualStudio/feedback/details/783391/unable-to-integrate-previously-working-ssrs-custom-report-item-to-vs-2012s-toolbox  
    After that I added the alias RSDesigner to it's properties and   extern alias RSDesigner; at the top of the PolygonsDesigner.cs file. )
    As of now, the top of the PolygonsDesigner.cs is as follows.  I don't recall making any other changes to the code.  As far as I can remember this is all I did in order to be able to compile the code in VS2012.
        extern alias RSDesigner;
        using System;
        using System.ComponentModel;
        using System.ComponentModel.Design;
        using System.Collections;
        using System.Collections.Generic;
        using System.Diagnostics;
        using System.Drawing;
        using System.Windows.Forms;
        using Microsoft.ReportDesigner;
        using Microsoft.ReportDesigner.Design;
        using Microsoft.ReportingServices.Interfaces;
        using Microsoft.ReportingServices.RdlObjectModel;
        using System.Xml;
        using System.Xml.Xsl;
        using System.Xml.XPath;
        [LocalizedName("Polygons")]
        [Editor(typeof(CustomEditor), typeof(ComponentEditor))]
        [ToolboxBitmap(typeof(PolygonsDesigner), "Polygons.ico")]      
        [CustomReportItem("Polygons")]
        [ToolboxItem(typeof(RSDesigner::Microsoft.ReportDesigner.Shell.CRIToolboxItem))] 
        [System.CLSCompliant(false)]
        public class PolygonsDesigner : CustomReportItemDesigner
        {   etc...

    Just fixed this myself.
    It appears the documentation online is wrong and the sample code is missing a reference to a reporting services dll and an attribute.
    What you need to do to get it working in VS2012 is add a reference to: Microsoft.ReportingServices.designer.11.0.dll to the PolygonsDesigner project and then add the following attribute to the PolygonsDesigner class: [ToolboxItem(typeof(Microsoft.ReportDesigner.Shell.CRIToolboxItem))]
    I also removed the [System.CLSCompliant(false)] attribute.
    You then recompile and place both dlls in C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies directory and the PolygonsDesigner.dll into the C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\bin
    or what ever is you reporting services path.
    You also need to change the Microsoft example for the rereportserver.config file to:
        <ReportItemDesigner>
       <ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsDesigner, PolygonsDesigner" />
        </ReportItemDesigner>
        <ReportItems>
       <ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsCRI,PolygonsCRI"/>
        </ReportItems>
     Notice that I changed the namespaces and class to what is in the actual code so if you change it make sure you change it here.
    And here in the RSReportDesigner.config:
    <ReportItems>
          <ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsCustomReportItem,PolygonsCRI" />
        </ReportItems>
        <ReportItemDesigner>
          <ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsDesigner, PolygonsDesigner" />
        </ReportItemDesigner>
        <ReportItemConverter>
          <Converter Source="Chart" Target="Polygons" Type="PolygonsCRI.PolygonsConverter, PolygonsDesigner" />
        </ReportItemConverter>
    Notice I haven't changed the last part as I didn't know what the PolygonsCRI.PolygonsConverter was.
    And make sure the rssrvpolicy.config looks like this:
         <CodeGroup class="UnionCodeGroup" version="1" PermissionSetName="FullTrust" Description="This code group grants PolygonsCRI.dll FullTrust permission. ">
           <IMembershipCondition class="UrlMembershipCondition" version="1" Url="C:\Program Files\Microsoft SQL Server\MSRS10_50.SQLSERVER\Reporting Services\ReportServer\bin\PolygonsCRI.dll" />
        </CodeGroup>
    After a restart of ssrs and relaunch of VS2012 I opened a test project and added the PolygonsDesigner.dll to the toolbox and it works.
    Jamie

  • How to Create Company and link with Plant

    Dear All
    Kindly help me to create Company and link with Plant and Storage Location through SPRO.
    Kindly trll me TCODE.
    Waiting for Reply
    Thanks & Regards
    Alok

    HI,
    Go to OX02 and create a company code by copying the standard company code 0001 / 1000
    Then go to OX10 and create a plant by copying the standard plant 0001 / 1000
    OX09 - maintain storage loaction for the created plant
    OX08 - create purchase org copying from standrard 0001 / 1000
    Go to OX18 and assign your plant to company code
    OX17 assign purchase org to plant
    In order to get the tcode go to SPRO and in the top menu click on additional informations - additional information - display key - IMG activity.
    After you select this then in the SPRO you have a column additional information comes up. each and every activity in SPRO will have and additional informatiom, in the additional information the last 4 characters is tcode.
    Eg : SIMG_CFMENUSAPCOX02 this is the additional information for CC. the last 4 characters OX02 is the tcode
    Thanks
    Kiran

  • OCI: Compiling and Linking?

    At the end of Chapter 1 of the OCI documentation, under
    "Compiling and Linking", it says:
    The details of linking an OCI program vary from system to
    system. See your Oracle system-specific documentation and the
    installation guide for more information about compiling and
    linking an OCI application for your specific platform.
    ...except that none of the Linux-specific documentation online
    (including the installation guide) covers compiling and linking.
    I tried linking with libclntsh.so, but it gets an unresolved
    symbol (slpmprodstab). I found this symbol in several of the .a
    and .o files, but linking with them leads to other unresolved
    symbols. Can someone please tell me what to do and/or point me
    to the right documentation?
    null

    John,
    I'm using:
    export ORACLE_HOME=/oracle ### this is the must
    make -f demo_rdbms.mk cdemo1 ### etc
    Good luck.
    John Stracke (guest) wrote:
    : At the end of Chapter 1 of the OCI documentation, under
    : "Compiling and Linking", it says:
    : The details of linking an OCI program vary from system to
    : system. See your Oracle system-specific documentation and the
    : installation guide for more information about compiling and
    : linking an OCI application for your specific platform.
    : ...except that none of the Linux-specific documentation online
    : (including the installation guide) covers compiling and
    linking.
    : I tried linking with libclntsh.so, but it gets an unresolved
    : symbol (slpmprodstab). I found this symbol in several of the
    .a
    : and .o files, but linking with them leads to other unresolved
    : symbols. Can someone please tell me what to do and/or point me
    : to the right documentation?
    null

  • How to compile and link a C program that uses the FSEvents framework

    I've been trying to compile a program from the command line that uses the FSEvents framework. I can compile and link the code in Xcode and it runs correctly.
    At the moment I have the following command line:
    cc -Wall -g -o Watcher *.c -framework CoreFoundation -framework FSEvents
    I'm running Snow Leopard and noticed that FSEvents is not in the Frameworks directory under /System/Library as it was in Leopard.
    The link error is:
    ld: framework not found FSEvents
    collect2: ld returned 1 exit status

    I'm not sure what the point is if it builds in Xcode, but the build log should show you every command it uses throughout the process--copy and paste.

  • Query 0: Runtime error There is already a line with the same key. with para

    Dear all,
    I have a query with several variables. One of the variables is Version. When I use certain values e.g. 1,2 or 3, I can generate the query without any problem. However, when I use the other values e,g, 4, 5, or 6, the query gives me with the following error messages :
    1. Query 0: Runtime error There is already a line with the same key. with parallel processing via RFC
    2. Error while reading data; navigation is possible
    3. >> Row: 174 Inc: LRSDRPU02 Prog: SAPLRSDRP
    Error 1
    Query 0: Runtime error There is already a line with the same key. with parallel processing via RFC
    Message no. DBMAN428
    Error 2
    Error while reading data; navigation is possible
    Message no. BRAIN289
    Diagnosis
    An error occurred while reading the data. The query result is therefore empty or inconsistent and is not buffered in the OLAP cache.
    Procedure
    You can continue to navigate or return to the last navigation step.
    Error 3
    >> Row: 174 Inc: LRSDRPU02 Prog: SAPLRSDRP
    Message no. RS_EXCEPTION301
    Diagnosis
    En error has been triggered. This message specifies where in the coding the error occurred. This helps you to localize the error quickly.
    May I know what causes this error and how to troubleshoot it?
    Thank you.

    Venkat,
    You are either a genius or working for SAP.
    In any case, your solution solved my problem.
    Thanks heaps!

  • Ostringstream 10; hangs when compiled and build with -mt option.

    I've written a very simple program to test the use of the stl class ostringstream. The program write an integer to the ostringstream object. In a multithreaded environment (compiled and build with the -mt option), that operation hangs and never returns, whilst it works fine if the program is compiled and build without the -mt option.
    Here is the program :
    #include <stdio.h>
    #include <stdlib.h>
    #include <unistd.h>
    #include <sstream>
    int main() {
    std::ostringstream buffer;
    printf("before writing integer to ostringstream\n"); fflush(stdout);
    buffer<< 10;
    printf("after writing integer to ostringstream.\n"); fflush(stdout);
    printf("exiting.\n"); fflush(stdout);
    return 0;
    Compilation and build :
    CC -mt test.cpp -o test
    Do you any idea why the program hangs at buffer << 10; in a multithreaded environment ?
    (I have tried to write a string instead of a integer, then it works).
    Thanks a lot

    Hi, I've tried your code with Solaris 7 with Forte Developer 6.2, and it seems to work fine. I get the following output:
    before writing integer to ostringstream
    after writing integer to ostringstream.
    exiting.
    My compiler version is:
    CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-03 2001/10/19
    -Moazam

  • Image won't open after right click and "open with" command using Editor PSE 10

    Can't see image after right click and "open with" Windows XP command using Editor PSE 10. The editor opens but no image appears. I have to use the open command from within Editor

      Make sure you have chosen the application PhotoshopElementsEditor.exe and not a shortcut.
    To manually associate a file format with an application:
    In Windows Explorer, right-click a file whose file association you want to change. For example, if you want to change the file association for all jpeg files, click a jpeg file.
    Choose Open With > Choose Program from the pop-up menu.
    In the Open With dialog box, click Browse and then locate and select the exe application file.
    Checkmark "Always use the selected program to open this kind of file" and click OK.
    Note:If you choose a program from the Open With menu in step 2, instead of selecting the Choose Program option, this check box is not available, and the file association won't work.

  • My Itunes quit functioning so I removed it and when I tried to reload i keep getting a runtime error. Program: C:\ProgramFiles(x86)\itunes\itunes.exe. R6034. Any suggestions?

    My Itunes quit functioning so I removed it and when I tried to reload i keep getting a runtime error. Program: C:\ProgramFiles(x86)\itunes\itunes.exe. R6034. Any suggestions?

    You will have to follow the instructions of tt2 in https://discussions.apple.com/thread/5822086 to correct.

Maybe you are looking for

  • Mac mini, boot camp, windows vista/windows 7, DVI to HDMI, no display

    I have a mac mini from 2008 on which I have put windows Vista via boot camp. I have connected the mini using DVI to HDMI, to my Sony Bravia 1080p HDTV. When I log into the mac 10.6.2, all seems fine and I can see the display alright. When I log into

  • Add Drop Shadow to JMenu Problem

    Hi, I got this code from "Swing Hacks", for some reason it does not run for me, but throws exceptions. I can not figure out why this is happening. This code straight out of the book, should be runnable. Below is the custom class, then the driver-test

  • Raw files imported distorted with Lightroom 3

    Hey, In the last months I started experiencing an issue with Lightroom 3 (is the software that came with my camera) that didn't have at the beginning and AFAIK nothing has changed after I isntalled the lastest version of lightroom 3 and the camera ra

  • Upgrade from 10.7.5 ?

    Can I upgrade to Mavericks from 10.7.5 or do I need 10.8 before ? Thanks.

  • Auto run installer!

    is it java have a coding to auto run an installer and install? what i want is auto install, got??? or can run it at the back???