Kinsa nakasulay na og gamit netbeans nga naa cygwin nya gamit og occi sa oracle ??
na praning na ko sa error sa akong compilation..
Kinsa nakasulay na og gamit netbeans nga naa cygwin nya gamit og occi sa oracle ??
na praning na ko sa error sa akong compilation..
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.
Can you give us the details?
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..
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?
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".
hello thanks sa mga comments...
mao diay ni ang complete error message?
gi-check nako ang object file kung naa ba gyud , makita man sab niya ..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
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 ...
/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.
maybe try lang make manually
ang kaning cygwin ba, mora ni siya og linux console sa windows ?
Similar Threads |
|