Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1

    Default Netbeans and Cygwin and Oracle


    Kinsa nakasulay na og gamit netbeans nga naa cygwin nya gamit og occi sa oracle ??

    na praning na ko sa error sa akong compilation..


  2. #2

    Default Re: Netbeans and Cygwin and Oracle

    I'm a heavy cygwin user but not tried compiling programs using oracle OCCI.
    What is your C++ compiler? gcc?
    What is the error message?
    Netbeans is your editor/IDE I presume.

  3. #3

    Default Re: Netbeans and Cygwin and Oracle

    Can you give us the details?

  4. #4

    Default Re: Netbeans and Cygwin and Oracle

    hi guys mao ni ang details sa akong environment

    IDE: Netbeans 6.0
    Compiler: g++ , kay OCCI man
    For oracle lib: oracle instant client, and sdk

    kung mag create ko og normal C++ nga application walay problem, pero kung mo integrate nako sa oracle naka himo og object pero dili maka create og execute, mo na cya og
    "g++ dist/... distanation_folder no file or directory found" , pero naa man ang directory..

    ang oracle diay nako kay naa sa lain nga pc naka install with Solaris 10 OS and SunStudio 12

    ang himo-on nako is mo connect lang ang akong application sa oracle..

  5. #5

    Default Re: Netbeans and Cygwin and Oracle

    I think wala na siya na succesful ug compile ang I think ang correct output directory kay in-ani 'dist/Debug/GNU-Linux-x86'.

    Have you test it manually bisag simple helloworld including the OCCI libraries?

    If succesful gani imong manual test, try it using the Netbeans. Take note ang g++ kay duha na siya ka klase na compiling process i.e. Compiling and Linking.

    If you try it sa Netbeans, you need to specify the necessary configurations like including static/dynamic libraries that are necessary in compiling and linking.

    Lastly, unsa gamit sa cygwin?

  6. #6

    Default Re: Netbeans and Cygwin and Oracle

    I think the problem maybe is the DOS-Win / Unix path compatibility.
    gcc/g++ uses cygwin environment.
    And path separator in cygwin should be a slash "/" not backslash "\".

    Drives also is accessed using the "/cygdrive/" path.
    Example: "/cygdrive/c/Mydir/subdir/subsubdir"

    If you are using backslash make it double "\\", cygwin can understand this also.

    Add'l Edit: Spaces in dir names also is escaped like unix using "\ " for example: "/cygdrive/c/Program\ Files".

  7. #7

    Default Re: Netbeans and Cygwin and Oracle

    hello thanks sa mga comments...

    mao diay ni ang complete error message?

    Code:
    g++.exe   -l -o dist/Debug/Cygwin-Windows/oracletest build/Debug/Cygwin-Windows/oracletestmain.o -LC\:/instantClient/instantclient_10_2
    C:/instantClient/instantclient_10_2/ocijdbc10.dll
     C:/instantClient/instantclient_10_2/ociw32.dll 
    C:/instantClient/instantclient_10_2/orannzsbb10.dll
     C:/instantClient/instantclient_10_2/oraociei10.dll 
    C:/instantClient/sdk/lib/msvc/ociw32.lib 
    C:/cygwin/lib/oracle/lib/oci.lib
     C:/cygwin/lib/oracle/lib/oraocci10.lib 
    C:/instantClient/instantclient_10_2/oci.dll 
    C:/instantClient/instantclient_10_2/oraocci10.dll 
    
    g++: dist/Debug/Cygwin-Windows/oracletest: No such file or directory
    gi-check nako ang object file kung naa ba gyud , makita man sab niya ..

    another nga na notice nako diay kung sa console nako i-access ang "/usr/lib" makita nako ang sulod pero kung adto sa explorer or sa netbeans ide di gyud nako makita ...

  8. #8

    Default Re: Netbeans and Cygwin and Oracle

    /usr/lib is not accessible if you are using netbeans (a windows program).
    Maybe this is your error.
    You should set your lib dir to c:/cygwin/usr/lib or copy the libs you are using to the project directory.

    I suggest to use Makefiles and run "make" in cygwin and not through netbeans.
    This will reduce dos/linux incompatibility when compiling.

    Just use netbeans as your editor.

  9. #9

    Default Re: Netbeans and Cygwin and Oracle

    maybe try lang make manually

  10. #10

    Default Re: Netbeans and Cygwin and Oracle

    ang kaning cygwin ba, mora ni siya og linux console sa windows ?

  11.    Advertisement

Page 1 of 3 123 LastLast

Similar Threads

 
  1. Replies: 455
    Last Post: 01-12-2012, 11:57 AM
  2. LF: WoW TCG Cards and Dungeons and Dragons Miniatures
    By jumps_zilla in forum Collectibles, Memorabilias & Hobbies
    Replies: 133
    Last Post: 08-02-2009, 07:28 PM
  3. Replies: 0
    Last Post: 09-11-2006, 05:30 PM
  4. Replies: 0
    Last Post: 08-29-2005, 06:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top