Dulu saya pernah juga buat di Windows pakai MS-Visual C/C++ (pernah buat manualnya juga untuk training, tapi sekarang ada dimana ya ??? lupa nyimpennya ...)
Saya set nggak pakai command line, tapi di set di configuration Jadi setelah edit isi *.pc, langsung tekan "Build" ... beres, terbentuk .EXE atau .DLL .... Sedangkan utk di Linux, spt kemarin > > saya buat sebuah file, sebut saja test.pc yg berisi program > > Pro*C Untuk kompilasi dan link-nya, cukup dgn menjalankan "make" > > $> make -f $ORACLE_HOME/precomp/demo/proc/demo_proc.mk EXE=test > > OBJS=test.o build > > Hasilnya berupa executable file dengan nama "test" (sesuai dengan nilai option EXE=) > > $> ./test > > SMITH is in department 20 Bowo --- In [email protected], "daniel_d" <[EMAIL PROTECTED]> wrote: > > makasih pak,atas responsenya . > tapi .pc yang ada pada saya ada link nya.jadi harus dilink dulu dengan C > compiler. > kalo di windows saya menggunakan Microsoft Visual C++ sebagai c compiler. > misal saya mempunya file dengan nama ota_gsp.pc > syntax yang saya pergunakan untuk mengcompile dari ota_gsp.pc menjadi > ota_gsp.exe > di windows adalah sebagai berikut > > rename ota_gsp.pc ota_gsp.c > > cl -Ic:\oracle\ora8i\oci\include -Ic:\oracle\ora8i\precomp\public - I. -I"C:\ > Program Files\Microsoft Visual Studio\VC98\include" -D_MT -D_DLL - Zi > d:\am\c_src\ota_gsp.c -DLISTENER -DFNPRO -DDELLOG -DW95_NT -P /link > c:\oracle\ora8i\oci\lib\msvc\oci.lib > c:\oracle\ora8i\precomp\lib\msvc\oraSQL8.LIB > c:\oracle\ora8i\precomp\lib\orasql8.LIB /LIBPATH:%MSVCDir%\lib msvcrt.lib > /nod:libc > > rename ota_gsp.i ota_gsp1.pc > > proc sqlcheck=semantics userid=abcdef/[EMAIL PROTECTED] dbms=native > iname=d:\am\c_src\ota_gsp1.pc include="C:\Program Files\Microsoft Visual > Studio\VC98\include" include="d:\am\c_src" > > cl -Ic:\oracle\ora8i\oci\include -Ic:\oracle\ora8i\precomp\public - I. -I"C:\ > Program Files\Microsoft Visual Studio\VC98\include" -D_MT -D_DLL - Zi > d:\am\c_src\ota_gsp1.c -DLISTENER -DFNPRO -DDELLOG -DW95_NT /link > c:\oracle\ora8i\oci\lib\msvc\oci.lib > c:\oracle\ora8i\precomp\lib\msvc\oraSQL8.LIB > c:\oracle\ora8i\precomp\lib\orasql8.LIB /LIBPATH:%MSVCDir%\lib msvcrt.lib > /nod:libc > > rename ota_gsp1.exe ota_gsp.exe > > lalu apa yang harus saya jalankan jika berada pada linux platform ? > terima kasih > > Daniel > > ----- Original Message ----- > From: "Yulius Wibowo" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Thursday, October 27, 2005 7:07 PM > Subject: [indo-oracle] Re: Pro*c 10.1.0.2 > > > > Berikut caranya : > > Saya menggunakan Database 9i Rel. 2 di RHEL 3 > > > > misal, working direcktori saya di /home/oracle > > > > lalu saya buat sebuah file, sebut saja test.pc yg berisi program > > Pro*C > > > > $> make -f $ORACLE_HOME/precomp/demo/proc/demo_proc.mk EXE=test > > OBJS=test.o build > > > > $> ./test > > SMITH is in department 20 > > > > > > Bowo > > > > > > > > > > > > --- In [email protected], "daniel_d" <[EMAIL PROTECTED]> wrote: > > > > > > Hi guys, > > > > > > Ada yang punya documentasi untk compile pro*c on linux ? > > > saya coba cari di site nya oracle,adanya yang on windows > > > > > > Daniel > > > > > > > > > > > > > > > > > > > -- > > -----------I.N.D.O - O.R.A.C.L.E--------------- > > Keluar: [EMAIL PROTECTED] > > Website: http://indo-oracle.lizt.org (NEW) > > ----------------------------------------------- > > > > Bergabung dengan Indonesia Thin Client User Groups, > > Terminal Server, Citrix, New Moon Caneveral, di: > > http://indo-thin.vze.com > > Yahoo! Groups Links > > > > > > > > > > > > > > > > -- > > No virus found in this incoming message. > > Checked by AVG Anti-Virus. > > Version: 7.0.344 / Virus Database: 267.12.5/149 - Release Date: 10/25/2005 > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/PhFolB/TM --------------------------------------------------------------------~-> -- -----------I.N.D.O - O.R.A.C.L.E--------------- Keluar: [EMAIL PROTECTED] Website: http://indo-oracle.lizt.org (NEW) ----------------------------------------------- Bergabung dengan Indonesia Thin Client User Groups, Terminal Server, Citrix, New Moon Caneveral, di: http://indo-thin.vze.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/indo-oracle/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

