Problems with Pro*C/C++ compiler on NT
When I run the precompiler on a .pc file with embedded SQL, a .cpp file is produced. However, the data definitions inserted by the precompiler are not recognized by the C++ compiler (in Visual C++ 6.0) unless I physically move the definitions so that they follow the SQLCA definitions (produced when the precompiler expands EXEC SQL INCLUDE SQLCA), at which point everything compiles with no problem. Has anyone seen behavior like this?
Thanks!
How do you want to "make the code for a windows pc with java" ?
Java can use sockets directly, and you can get the Local IP address by this code..
regards,
Owen
import java.net.*;
public class testnet
public static void main(String[] args)
try
InetAddress local = InetAddress.getLocalHost();
System.out.println ("Local Host Name : " + local.getHostName() );
byte[] ip = local.getAddress();
// Now do a bit of conversion to print the IP address from a byte array
System.out.print ("Local Host IP : " );
int toUnsignedInt;
for ( int i=0; i<ip.length; i++ )
if (i>0)
System.out.print ( "." );
toUnsignedInt = (int)ip& 0xFF;
System.out.print ( Integer.toString( toUnsignedInt ) );
System.out.println();
catch ( Exception dooohhh )
dooohhh.printStackTrace();
System.exit(0);
Similar Messages
-
Problems with Pro Tools 8, is it the software?
Hello, I know this is "Apple Discussions", but since I'm using Pro tools 8 with the new macbook pro, I might get some answers here. I recently bought pro tools 8, I already have logic though, but wanted to be in the pro tools world too so, the thing is that every time I use Pro Tools 8 with the digi 003, the session Im working on will stop with just a few plugins, and man this happens a lot, on the other hand is that nothing happens when I use the digi 003 with Logic 8, I mean, I could have like 20 plugins and It would not stop at all. Can anyone identify with this problem with pro tools 8, Because people tell me that on pro tools 7.4 that doesnt happen at all.
Thank you...PT8 is much better with plug ins than PT7x, but is not in the league of Logic. I am a huge PT fan and use both Logic and PT8, and as much as I love the look and superior interface of PT8, Logic is like an ugly old car that goes 200 MPH. It's a performance beast. I've had ridiculous amounts of plug ins in Logic with not a whimper from the program.
PT8 is much more sensitive to things like whether you are using Firewire drives to record to (as opposed to internal SATAs on a Mac Pro), and many 3rd party plugs cause PT much grief. For high track counts and lots of plug ins, Logic is still King Kong.
TH
Message was edited by: Tom Hartman1 -
When trying to generate C-Code of the sample programs with the Pro*C compiler on a Redhat 9 Linux and Oracle 8.1.7, I have a problem with typedef __builtin_va_ as shown below. The $ORACLE_HOME/precomp/admin/pcscfg.cfg contains the following entries:
sys_include=(/usr/include,/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include)
include=(/usr/include/linux)
include=(/usr/lib/gcc-lib/i386-redhat-linux7/2.96/include)
include=(/usr/local/oracle/product/8.1.7/precomp/public)
include=/usr/local/oracle/product/8.1.7/precomp/syshdr
include=/usr/local/oracle/product/8.1.7/rdbms/public
include=/usr/local/oracle/product/8.1.7/rdbms/demo
ltype=short
================
Pro*C/C++: Release 8.1.7.0.0 - Production on Mon Jun 7 13:26:06 2004
(c) Copyright 2000 Oracle Corporation. All rights reserved.
System default option values taken from: /usr/local/oracle/product/8.1.7/precomp/admin/pcscfg.cfg
Syntax error at line 43, column 9, file /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h:
Error at line 43, column 9 in file /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/incl
ude/stdarg.h
typedef __builtin_va_list __gnuc_va_list;
........1
PCC-S-02201, Encountered the symbol "__builtin_va_list" when expecting one of th
e following:
auto, char, const, double, enum, float, int, long,
ulong_varchar, OCIBFileLocator OCIBlobLocator,
OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
short, signed, sql_context, sql_cursor, static, struct,
union, unsigned, utext, uvarchar, varchar, void, volatile,
a typedef name,
The symbol "enum," was substituted for "__builtin_va_list" to continue.Sorry! I have not explain it clearly.
To solve it , you do following :
1. locate stdarg.h ( or find /usr -name stdarg.h ), assume you find a stdarg.h in /usr/lib/gcc-lib/XXX/XXX/include/stdarg.h
2.ln -s /usr/lib/gcc-lib/XXX/XXX/include/stdarg.h /usr/include/stdarg.h or cp /usr/lib/gcc-lib/XXX/XXX/include/stdarg.h /usr/include
( above 2 step was to make Pro*C can find stdarg.h in /usr/include )
3. for file stddef.h do like step 1,2
4. append a line in your Pro*C config file:
CODE=ANSI_C
null -
Problem with Pro*C reading BLOB field from Oracle 10g
Hello Experts,
We have a Pro*c application which is reading the BLOB data fields (a PNG image file) from Oracle data base. It holds the BLOB fields returned from the SQL query into a Unsigned Char structure in Pro*C. The program used work fine on AIX 32 – bit 4.3 and Oracle 8.1 environment.
Recently, we have upgraded the environment to AIX 64-bit 5.3 and Oracle 10g.Since after the Pro*c program has problem in reading the Blob filed.
Below is the query we are trying to execute –
EXEC SQL
SELECT
signtre_image, image_file_name_ext
INTO
:msipLocalImage INDICATOR :msipLocalImage_i,
:file_name_ext INDICATOR :file_name_ext_i
FROM
dcs_sign
WHERE
signtre_nbr = :signtre_nbr;
Here signtre_image is the BLOB fields and msipLocalImage is a Pro*C structure define as below –
typedef struct tagSignImage
long len; /* Image length */
unsigned char img[1]; /* Pointer to first byte. */
} MOTS_SIGN_IMAGE;
The quesry does not give any error or exception message in the Pro*C , program just stops at the point of executing the quesry..When we run the query commenting the BLOB filed it works fine. Also, the query runs good when we run it in the Oracle editor.
There seems to be problem with the way we are reading the BLOB field in the new Oracle 10g enviromet.
Does any body have any idea what’s wrong with this query? We really need it to work.
Any Help will be greatly appreciated.
Thanks,
- Rajan YadavThanks a ton for your response.
We made the necessary changes as suggested by you.This time we got another flavour of error - SQL Error Code - Inconsistent error while reading BLOB.
Another thing we noticed is that the data field which we are trying to read is defined as LONG RAW instead of a BLOB in data base.
Are these two things related in any sense or is there anything else which is causing the error.
Once again Thanks for your help.
- Rajan Yadav -
External Hard Drive & Problems With Pro Tools LE
Alright... my friend has the same computer as me, Powerbook G4, with the same specs and everything (OSX 10.3.9), and has a Digi 002 Rack with Pro Tools LE 6.2.2 He can record and playback everything perfectly through his Lacie 150 GB external HD. However, when i installed the software on my laptop and tried to load the same files he was working on, i get an error message that tells me that the audio files are "unsuitable for playback" and that the Lacie HD is "not an audio playback volume", which it really is!! The only way to get the songs to play, is to copy all the files onto my internal HD... then it all works fine. (besides the fact that is uses up all my memory!!!) Is there any way to fix this problem?? Some update or driver that i'm missing?? I'm assuming it has something to do with my laptop software/hardware??? ALSO, i run Final Cut Pro, and it won't let me set my external HD as the target disk, because it is, again, unsuitable for playback!!! I have to import tapes to the internal, then send them to the external after the fact! really annoying....
ANY help would be greatly appreciated!!!!!!How big is the drive? It's possible that Spotlight indexing is running and slowing things down. If you are unplugging the drive when you run into problems, the indexing will never complete and will start again the next time you plug in the drive. You can exclude the external drive from being indexed in the Spotlight system preferences:
You might also want to use Disk Utility to check the disk for errors, especially if you've been unplugging it while activity has been going on. -
Finally got a Pro Mouse for my G4 (still non-mac keyboard though). But it seems that there is a problem with the mouse now. I got it second hand from a friend and saw it working on his computer, but I plug it in to mine and I get no response! I've tried plugging it into different ports and restarting the computer with no luck...any suggestions?
Thanks Barry,
I just tried to do what you said in your answer and after restarting the computer everything worked fine for a short period of time, after that everything was as before.
I took the magic mouse to an apple store a couple of days ago, they tried it in several computers and everything was fine. I also checked my macbook's bluetooth with other devices and I didn't find any problems.
I still have until monday to fix the issue before the 14 day trial period expires, so you are welcome if you have any more suggestions.
Thanks again to everybody trying to help
Miguel -
Problems with Pro*C and the double datatype
Hi!
I'm working with Pro*C 8.1.7 on HPUX 11.0, but I've a problem
with the datatype double.
On runtime, I got a Bus Error (core dumped) when try assign a
double bind_variable (Pro*C) with a double variable (ANSI_C)
For example:
typedef struct xxxx
float item_ANSI_C;
double variable_ANSI_C;
} xxxx;
void procedure_name()
EXEC SQL BEGIN DECLARE SECTION;
xxxx *POINTER;
double double_bind_variable_PRO*C;
EXEC SQL END DECLARE SECTION;
EXEC SQL WHENEVER SQLERROR DO (...);
for (i = 0; ; i++)
EXEC SQL WHENEVER NOT FOUND DO break;
EXEC SQL FETCH cursor INTO (...),
:double_bind_variable_PRO*C,
POINTER.item_ANSI_C = other_bind_variable_PRO*C;
(***)POINTER[i].variable_ANSI_C = double_bind_variable_PRO*C;
(***): In this point the program throw BusError(core dumped).
However, the float datatype does not.
------- End Example -------------
Somebody have any solution for this problem? Please.
Thanks, in advance.
Alex.Hi Franz,
Though it's a bit late, I'll leave this trace for those who follow.
IRecordset also has Fields->Item.
What might work is:
IField * field;
field = rec->Fields->Item(0);
field->get_Value(0); (or something similar for your environment).
I couldn't find any documentation either.
The C++ examples are not overwhelming, are they?
Worse, they are not supported. Otherwise SBO-support is very hilfsbereit.
Cheers,
Evert -
Hi,
I have had my MacBook Pro with Retina for about 48 hours and so far it has switched itself off about 9 times and gone to a white screen saying it has encountered a problem and needs to shut down and help would be amazing.......this is the error report
Interval Since Last Panic Report: 9163 sec
Panics Since Last Report: 4
Anonymous UUID: 985A1E2C-F455-46D1-8098-30852A3B1D86
Fri Aug 17 12:35:32 2012
panic(cpu 0 caller 0xffffff80002c4794): Kernel trap at 0xffffff7f823d19b1, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0x00000000feedbef7, CR3: 0x000000001442e003, CR4: 0x00000000001606e0
RAX: 0xffffff7f823d1a84, RBX: 0x0000000000000077, RCX: 0x00000000feedbeef, RDX: 0x0000000000ae85cc
RSP: 0xffffff80f434b9b0, RBP: 0xffffff80f434b9c0, RSI: 0xffffff801ad88a00, RDI: 0xffffff801acff000
R8: 0xffffff80e45c6670, R9: 0x0000000000000000, R10: 0xffffff7f823d2e6c, R11: 0xffffff8015e305e8
R12: 0xffffff80177b9988, R13: 0xffffff801acff000, R14: 0xffffff80d39cc000, R15: 0xffffff801acff000
RFL: 0x0000000000010282, RIP: 0xffffff7f823d19b1, CS: 0x0000000000000008, SS: 0x0000000000000010
CR2: 0x00000000feedbef7, Error code: 0x0000000000000002, Faulting CPU: 0x0
Backtrace (CPU 0), Frame : Return Address
0xffffff80f434b660 : 0xffffff8000220792
0xffffff80f434b6e0 : 0xffffff80002c4794
0xffffff80f434b890 : 0xffffff80002da55d
0xffffff80f434b8b0 : 0xffffff7f823d19b1
0xffffff80f434b9c0 : 0xffffff7f823d5f7d
0xffffff80f434bb00 : 0xffffff7f823d2ed4
0xffffff80f434bb60 : 0xffffff800065593e
0xffffff80f434bb80 : 0xffffff800065621a
0xffffff80f434bbe0 : 0xffffff80006569bb
0xffffff80f434bd20 : 0xffffff80002a3f08
0xffffff80f434be20 : 0xffffff8000223096
0xffffff80f434be50 : 0xffffff80002148a9
0xffffff80f434beb0 : 0xffffff800021bbd8
0xffffff80f434bf10 : 0xffffff80002af140
0xffffff80f434bfb0 : 0xffffff80002dab5e
Kernel Extensions in backtrace:
com.apple.driver.AppleIntelHD4000Graphics(7.2.8)[6B02D782-A79F-399C-81FD-353EBF F2AB81]@0xffffff7f823c9000->0xffffff7f8242ffff
dependency: com.apple.iokit.IOPCIFamily(2.7)[C0404427-3360-36B4-B483-3C9F0C54A3CA]@0xffffff 7f80829000
dependency: com.apple.iokit.IONDRVSupport(2.3.4)[474FE7E9-5C79-3AA4-830F-262DF4B6B544]@0xff ffff7f8088d000
dependency: com.apple.iokit.IOGraphicsFamily(2.3.4)[EF26EBCF-7CF9-3FC7-B9AD-6C0C27B89B2B]@0 xffffff7f80854000
BSD process name corresponding to current thread: Google Chrome He
Mac OS version:
11E2620
Kernel version:
Darwin Kernel Version 11.4.2: Wed May 30 20:13:51 PDT 2012; root:xnu-1699.31.2~1/RELEASE_X86_64
Kernel UUID: 25EC645A-8793-3201-8D0A-23EA280EC755
System model name: MacBookPro10,1 (Mac-C3EC7CD22292981F)
System uptime in nanoseconds: 6563306129534
last loaded kext at 7357761562: com.apple.driver.AppleHWSensor 1.9.5d0 (addr 0xffffff7f824ed000, size 28672)
last unloaded kext at 100749901807: com.apple.iokit.IOEthernetAVBController 1.0.1b1 (addr 0xffffff7f818d7000, size 20480)
loaded kexts:
com.apple.driver.AppleHWSensor 1.9.5d0
com.apple.filesystems.autofs 3.0
com.apple.driver.AppleMikeyHIDDriver 122
com.apple.driver.AGPM 100.12.69
com.apple.driver.ApplePlatformEnabler 2.0.5d3
com.apple.driver.X86PlatformShim 5.0.0d8
com.apple.driver.AppleHDA 2.2.3f13
com.apple.driver.AppleMikeyDriver 2.2.3f13
com.apple.driver.AppleUpstreamUserClient 3.5.9
com.apple.driver.AudioAUUC 1.59
com.apple.driver.AppleIntelHD4000Graphics 7.2.8
com.apple.driver.AppleSMCPDRC 5.0.0d8
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.iokit.IOBluetoothSerialManager 4.0.7f2
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.GeForce 7.2.8
com.apple.driver.AppleSMCLMU 2.0.1d2
com.apple.driver.AudioIPCDriver 1.2.3
com.apple.driver.ApplePolicyControl 3.1.32
com.apple.driver.AppleMuxControl 3.1.32
com.apple.driver.AppleLPC 1.6.0
com.apple.driver.AppleMCCSControl 1.0.33
com.apple.driver.AppleIntelFramebufferCapri 7.2.8
com.apple.driver.AppleUSBTCButtons 227.6
com.apple.driver.BroadcomUSBBluetoothHCIController 4.0.7f2
com.apple.driver.AppleUSBTCKeyboard 227.6
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 33
com.apple.driver.XsanFilter 404
com.apple.iokit.IOAHCIBlockStorage 2.0.4
com.apple.driver.AirPort.Brcm4331 560.7.21
com.apple.driver.AppleSDXC 1.2.2
com.apple.driver.AppleUSBHub 5.0.8
com.apple.driver.AppleEFINVRAM 1.6.1
com.apple.driver.AppleAHCIPort 2.3.0
com.apple.driver.AppleUSBEHCI 5.0.7
com.apple.driver.AppleUSBXHCI 1.0.7
com.apple.driver.AppleSmartBatteryManager 161.0.0
com.apple.driver.AppleACPIButtons 1.5
com.apple.driver.AppleRTC 1.5
com.apple.driver.AppleHPET 1.7
com.apple.driver.AppleSMBIOS 1.9
com.apple.driver.AppleACPIEC 1.5
com.apple.driver.AppleAPIC 1.6
com.apple.driver.AppleIntelCPUPowerManagementClient 195.0.0
com.apple.nke.applicationfirewall 3.2.30
com.apple.security.quarantine 1.3
com.apple.security.TMSafetyNet 8
com.apple.driver.AppleIntelCPUPowerManagement 195.0.0
com.apple.kext.triggers 1.0
com.apple.iokit.IOSCSIArchitectureModelFamily 3.2.1
com.apple.driver.DspFuncLib 2.2.3f13
com.apple.iokit.IOSurface 80.0.2
com.apple.iokit.IOSerialFamily 10.0.5
com.apple.iokit.IOAudioFamily 1.8.6fc18
com.apple.kext.OSvKernDSPLib 1.3
com.apple.driver.AppleHDAController 2.2.3f13
com.apple.iokit.IOHDAFamily 2.2.3f13
com.apple.driver.AppleSMBusPCI 1.0.10d0
com.apple.driver.AppleGraphicsControl 3.1.32
com.apple.driver.X86PlatformPlugin 5.1.1d6
com.apple.driver.AppleSMC 3.1.3d10
com.apple.driver.IOPlatformPluginFamily 5.1.1d6
com.apple.driver.AppleBacklightExpert 1.0.4
com.apple.nvidia.nvGK100hal 7.2.8
com.apple.driver.AppleSMBusController 1.0.10d0
com.apple.NVDAResman 7.2.8
com.apple.iokit.IONDRVSupport 2.3.4
com.apple.iokit.IOGraphicsFamily 2.3.4
com.apple.driver.AppleUSBBluetoothHCIController 4.0.7f2
com.apple.iokit.IOBluetoothFamily 4.0.7f2
com.apple.driver.AppleThunderboltDPInAdapter 1.8.4
com.apple.driver.AppleThunderboltDPAdapterFamily 1.8.4
com.apple.driver.AppleThunderboltPCIDownAdapter 1.2.5
com.apple.driver.AppleUSBMultitouch 230.5
com.apple.iokit.IOUSBHIDDriver 5.0.0
com.apple.driver.AppleUSBMergeNub 5.0.7
com.apple.driver.AppleUSBComposite 5.0.0
com.apple.driver.AppleThunderboltNHI 1.6.0
com.apple.iokit.IOThunderboltFamily 2.0.3
com.apple.iokit.IO80211Family 420.3
com.apple.iokit.IONetworkingFamily 2.1
com.apple.iokit.IOUSBUserClient 5.0.0
com.apple.iokit.IOAHCIFamily 2.0.8
com.apple.iokit.IOUSBFamily 5.0.8
com.apple.driver.AppleEFIRuntime 1.6.1
com.apple.iokit.IOHIDFamily 1.7.1
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 177.5
com.apple.kext.AppleMatch 1.0.0d1
com.apple.driver.DiskImages 331.7
com.apple.iokit.IOStorageFamily 1.7.2
com.apple.driver.AppleKeyStore 28.18
com.apple.driver.AppleACPIPlatform 1.5
com.apple.iokit.IOPCIFamily 2.7
com.apple.iokit.IOACPIFamily 1.4
Model: MacBookPro10,1, BootROM MBP101.00EE.B00, 4 processors, Intel Core i7, 2.3 GHz, 8 GB, SMC 2.3f32
Graphics: NVIDIA GeForce GT 650M, NVIDIA GeForce GT 650M, PCIe, 1024 MB
Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In, 512 MB
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54333531533642465238432D50422020
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54333531533642465238432D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xEF), Broadcom BCM43xx 1.0 (5.106.198.19.21)
Bluetooth: Version 4.0.7f2, 2 service, 18 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM256E, 251 GB
USB Device: hub_device, 0x8087 (Intel Corporation), 0x0024, 0x1a100000 / 2
USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x8510, 0x1a110000 / 3
USB Device: hub_device, 0x8087 (Intel Corporation), 0x0024, 0x1d100000 / 2
USB Device: hub_device, 0x0424 (SMSC), 0x2512, 0x1d180000 / 3
USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0263, 0x1d182000 / 5
USB Device: BRCM20702 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x1d181000 / 4
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8286, 0x1d181300 / 8Do you have the very latest version of Google Chrome? There were some problems with it and the rMBP when it first came out...
Clinton -
Problem with pro*c compilation and linking
Hi all,
I have a problem running the pro*c program on an windows environment.
I have oracle9i and visual studio .net. Ya kinda strange about the combo, but need to live with it.
I create a .pc file and precompile it using oracle pro*c/c++ precompiler. so now I got the .c file.
I used .net command line to compile this .c file
It gave me the .obj file. Now I am getting a link error. I am not sure how I need to link the linkfile.
Let me know if you have any suggestions.
Thank you,
-RaghuMake sure you are including the Pro*C library. The platform docs tell you explicitly what the library name is. I think for 9i it is called orasql9.lib.
-
Problem with Pro*C/C++ complie in linux
I install Oracle8.1.7 in my Mandrake 7.2 ( like redhat7.1) , and it works well except with proc not works well.
when I complie the precomp demo program, it gives much errors. I note the proc config file length was zero.
The following is errors I get when do:
cd precomp/demo/proc
make -f demo_proc.mk sample1
it print very large errors, like follow:
Pro*C/C++: Release 8.1.7.0.0 - Production on PGFZNe 7TB 6 11:46:04 2001
(c) Copyright 2000 Oracle Corporation. All rights reserved.
System default option values taken from: /home/u01/precomp/admin/pcscfg.cfg
Error at line 33, column 11 in file /usr/include/stdio.h
# include <stddef.h>
..........1
PCC-S-02015, unable to open include file
Error at line 38, column 11 in file /usr/include/stdio.h
# include <stdarg.h>
..........1
PCC-S-02015, unable to open include file
Error at line 29, column 10 in file /usr/include/bits/types.h
#include <stddef.h>
.........1
PCC-S-02015, unable to open include file
Error at line 14, column 10 in file /usr/include/_G_config.h
when I run proc without file, it print options as following:
Pro*C/C++: Release 8.1.7.0.0 - Production on Mon Jul 9 11:19:38 2001
(c) Copyright 2000 Oracle Corporation. All rights reserved.
System default option values taken from: /home/u01/precomp/admin/pcscfg.cfg
Option Name Current Value Description
auto_connect no Allow automatic connection to ops$ account
char_map charz Mapping of character arrays and strings
close_on_commitno Close all cursors on COMMIT
code kr_c The type of code to be generated
comp_charset multi_byte The character set type the C compiler supports
config default Override system configuration file with another
cpp_suffix none Override the default C++ filename suffix
dbms native v6/v7/v8 compatibility mode
def_sqlcode no Generate '#define SQLCODE sqlca.sqlcode' macro
define none Define a preprocessor symbol
duration transaction Set pin duration for objects in the cache
dynamic oracle Specify Oracle or ANSI Dynamic SQL Semantics
errors yes Whether error messages are sent to the terminal
errtype none Name of the list file for intype file errors
fips none FIPS flagging of ANSI noncompliant usage
header none Specify file extension for Precompiled Headers
hold_cursor no Control holding of cursors in the cursor cache
iname none The name of the input file
include none Directory paths for included files
intype none The name of the input file for type information
lines no Add #line directives to the generated code
lname none Override default list file name
ltype none The amount of data generated in the list file
maxliteral 1024 Maximum length of a generated string literal
maxopencursors 10 Maximum number of cached open cursors
mode oracle Code conformance to Oracle or ANSI rules
nls_char none Specify National Language character variables
nls_local no Control how NLS character semantics are done
objects yes Support object types
oname none The name of the output file
oraca no Control the use of the ORACA
pagelen 80 The page length of the list file
parse full Control which non-SQL code is parsed
prefetch 1 Number of rows pre-fetched at cursor OPEN time
release_cursor no Control release of cursors from cursor cache
select_error yes Control flagging of select errors
sqlcheck syntax Amount of compile-time SQL checking
sys_include none Directory where system header files are found
threads no Indicates a multi-threaded application
type_code oracle Use Oracle or ANSI type codes for Dynamic SQL
unsafe_null no Allow a NULL fetch without indicator variable
userid none A username/password [@dbname] connect string
varchar no Allow the use of implicit varchar structures
version recent Which version of an object is to be returned
PCC-F-02135, CMD-LINE: User asked for help
How can I do to solve this problem now?
Note: I need pro*c/c++ to works well in my project.
Thank you very much for your kindly help!
chen chuanwen: [email protected]
nullSorry! I have not explain it clearly.
To solve it , you do following :
1. locate stdarg.h ( or find /usr -name stdarg.h ), assume you find a stdarg.h in /usr/lib/gcc-lib/XXX/XXX/include/stdarg.h
2.ln -s /usr/lib/gcc-lib/XXX/XXX/include/stdarg.h /usr/include/stdarg.h or cp /usr/lib/gcc-lib/XXX/XXX/include/stdarg.h /usr/include
( above 2 step was to make Pro*C can find stdarg.h in /usr/include )
3. for file stddef.h do like step 1,2
4. append a line in your Pro*C config file:
CODE=ANSI_C
null -
Having a problem with Pro Tools and Quiktime may be the cause. Need advice.
I recently installed Pro Tools recording software on my Mac and everytime I try and open the program I get a kernel panic "restart" screen. I have been told that it may have something to with my Quiktime version.
I am running
OSX version 10.4.7
Pro Tools version 7.1
and Quiktime version 7.0.4
Could this be my problem? thanksA fax file is simply a TIFF file. If you converted it to a PDF (you did not give any info on your workflow), then you have a graphic. The conversion to Excel will also be a bunch of graphics I guess. You would need to run OCR first. Even then you may not get the column information and may have to copy column by column using alt key when selecting the text. That allows you go copy a column.
-
Printing Problem with Pro 8 and Reader
I have this problem where when I print to any printer, from Acrobat pro, or reader, any sort of graphics/image in the PDF doesn't come out properly. For example, most of the graphics/image part looks solid black, or blocky. I usually take the same PDF, open it up on another computer, and print it to the same printer i normally print to, and it prints fine. I also can print from any other program other than acrobat/reader just fine.
So far, i have uninstalled Reader, and reinstalled Acrobat, with no result.
Any ideas?Not alot of information to go on but you might check to see if Print Color As Black is checked in the lower left corner of the Print dialog.
-
Printing Problem with Pro-100 and Photoshop
This is my setup: using Mac Pro running Snow Leopard (10.6.8) & editing & printing from Photoshop CS 6. I have new Canon Pixma Pro-100 printer and set it up OK. First thing printed was a page from a document from MS Word on 8.5X11 plain paper - this came out OK. Next I fire up Photoshop and open a 4X6 inch image (just a snapshot in jpeg, landscape format) to do a test print. I set it up in the print dialog as 4X6 paper, Canon's Pro Glossy paper profile, rear tray, standard print quality, Photoshop manages the color. I load the paper in the rear tray close the covers and hit print.
Now, when it starts to print the printer moves about 3.8 inches of paper out of the printer and it starts printing on the remaining 2.2 inches then spits the paper out. It does this in Photoshop (any image, it doesn't matter), and it does it printing from Nikon’s Capture NX. I have been able to get it to print on the paper correctly using Apple's Preview program but that that's not going to do me any good. I was on the phone with Canon tech support for about 2 hours and they were completely puzzled suggesting I would have to use Canon's printing apps instead to print - that doesn't do me any good either. I want to be able to print from Photoshop. I have the most recent Canon driver, and Photoshop is up to date. Any one every heard of this or experienced the same problem? I don’t think I’ve overlooked anything. Thanks JMDavis!Hi JMDavis,
Have you tried printing using the Print Studio Pro plugin for Photoshop? If this is not install, it is available for download from Canon's web site. To download and install Print Studio Pro, please follow these steps:
1. Visit Canon's website at: http://www.usa.canon.com/cusa/support/consumer
2. Type PIXMA PRO-100 in the "Enter Your Model Name" box and click GO.
3. On the Support page for your unit, click the 'Drivers & Software' link in the middle of the page.
4. Click Software.
5. Click on Print Studio Pro.
6. If you agree, please select the checkbox next to "I have read and agree to the terms of the Disclaimer and wish to continue with the download".
7. Click on the Download button.
8. The file will be downloaded to your Downloads folder.
9. Once the download is complete, close all windows.
10. Double click [mpsp-mac-1_3_5-ea9_2.dmg] in your Downloads folder. Files will extract.
Follow the prompts and installation will complete.
Once installed, please open your image in Photoshop and print it using the Print Studio Pro plugin.
Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well. -
Problem with Pro*C Precompiler in 10gR2
To test whether my pro*c precompiler was working, I copied a sample program and tried running it through the precompiler. I am running Fedora 6 on Linux X86-64
This was what I got.
proc iname=sample1.pc ltype=long
Pro*C/C++: Release 10.2.0.1.0 - Production on Sat Aug 18 01:53:49 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
System default option values taken from: /u01/app/oracle/product/10.2.0/db_1/precomp/admin/pcscfg.cfg
Syntax error at line 72, column 26, file /usr/include/gconv.h:
Error at line 72, column 26 in file /usr/include/gconv.h
unsigned char **, size_t *, int, int);
.........................1
PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
... auto, char, const, double, enum, float, int, long,
ulong_varchar, OCIBFileLocator OCIBlobLocator,
OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
short, signed, sql_context, sql_cursor, static, struct,
union, unsigned, utext, uvarchar, varchar, void, volatile,
a typedef name, exec oracle, exec oracle begin, exec,
exec sql, exec sql begin, exec sql type, exec sql var,
The symbol "enum," was substituted for "size_t" to continue.
Syntax error at line 88, column 7, file /usr/include/gconv.h:
Error at line 88, column 7 in file /usr/include/gconv.h
size_t *);
......1
PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
... auto, char, const, double, enum, float, int, long,
ulong_varchar, OCIBFileLocator OCIBlobLocator,
OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
short, signed, sql_context, sql_cursor, static, struct,
union, unsigned, utext, uvarchar, varchar, void, volatile,
a typedef name, exec oracle, exec oracle begin, exec,
exec sql, exec sql begin, exec sql type, exec sql var,
The symbol "enum," was substituted for "size_t" to continue.
Syntax error at line 97, column 6, file /usr/include/gconv.h:
Error at line 97, column 6 in file /usr/include/gconv.h
size_t *);
.....1
PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
... auto, char, const, double, enum, float, int, long,
ulong_varchar, OCIBFileLocator OCIBlobLocator,
OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
short, signed, sql_context, sql_cursor, static, struct,
union, unsigned, utext, uvarchar, varchar, void, volatile,
a typedef name, exec oracle, exec oracle begin, exec,
exec sql, exec sql begin, exec sql type, exec sql var,
The symbol "enum," was substituted for "size_t" to continue.
Syntax error at line 106, column 3, file /usr/include/gconv.h:
Error at line 106, column 3 in file /usr/include/gconv.h
__gconv_trans_fct __trans_fct;
..1
PCC-S-02201, Encountered the symbol "__gconv_trans_fct" when expecting one of th
e following:
char, const, double, enum, float, int, long, ulong_varchar,
OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
struct, union, unsigned, utext, uvarchar, varchar, void,
volatile, a typedef name,
Syntax error at line 0, column 0, file sample1.pc:
Error at line 0, column 0 in file sample1.pc
PCC-S-02201, Encountered the symbol "<eof>" when expecting one of the following:
; : an identifier, end-exec, random_terminal
Error at line 0, column 0 in file sample1.pc
PCC-F-02102, Fatal error while doing C preprocessing
This is what I have in pcsfg.cfg
sys_include=(/build/s630/precomp/public,/usr/include,/opt/gcc33/lib64/gcc-lib/x86_64-suse-linux/3.3/include,/usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/include,/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/include,/usr/include/linux,/usr/lib/gcc/x86_64-redhat-linux/4.1.1/include)
ltype=short
define=__x86_64__
include=(/u01/app/oracle/product/10.2.0/db_1/precomp/public)
include=/u01/app/oracle/product/10.2.0/db_1/precomp/hdrs
I would be very grateful for any help.
ThanksThanks very much for your help. With code=CPP the size_t error disappears. But will that produce Pro C code in C format ?
I ran into another problem.
[oracle@Falcon source]$ proc iname=sample1.pc ltype=long code=CPP
Pro*C/C++: Release 10.2.0.1.0 - Production on Sun Aug 19 08:33:31 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
System default option values taken from: /u01/app/oracle/product/10.2.0/db_1/precomp/admin/pcscfg.cfg
Semantic error at line 19, column 22, file sample1.pc:
EXEC SQL CONNECT :userid;
.....................1
PCC-S-02322, found undefined identifier
Semantic error at line 25, column 23, file sample1.pc:
WHERE deptno = :dept_number;
......................1
PCC-S-02322, found undefined identifier
Semantic error at line 38, column 39, file sample1.pc:
EXEC SQL FETCH emp_cursor INTO :emp_name;
......................................1
PCC-S-02322, found undefined identifier
[oracle@Falcon source]$ vi sample1.pc
Where this is the code.
[oracle@Falcon source]$ cat sample1.pc
#include <stdio.h>
/* declare host variables */
char userid[18] = "PRODUSER/PRODUSER";
char emp_name[10];
int emp_number;
int dept_number;
char temp[32];
void sql_error();
/* include the SQL Communications Area */
#include <sqlca.h>
main()
{ emp_number = 7499;
/* handle errors */
EXEC SQL WHENEVER SQLERROR do sql_error("Oracle error");
/* connect to Oracle */
EXEC SQL CONNECT :userid;
printf("Connected.\n");
/* declare a cursor */
EXEC SQL DECLARE emp_cursor CURSOR FOR
SELECT ename
FROM emp
WHERE deptno = :dept_number;
printf("Department number? ");
gets(temp);
dept_number = atoi(temp);
/* open the cursor and identify the active set */
EXEC SQL OPEN emp_cursor;
printf("Employee Name\n");
printf("-------------\n");
/* fetch and process data in a loop
exit when no more data */
EXEC SQL WHENEVER NOT FOUND DO break;
while (1)
EXEC SQL FETCH emp_cursor INTO :emp_name;
printf("%s\n", emp_name);
EXEC SQL CLOSE emp_cursor;
EXEC SQL COMMIT WORK RELEASE;
exit(0);
void sql_error(msg)
char *msg;
char buf[500];
int buflen, msglen;
EXEC SQL WHENEVER SQLERROR CONTINUE;
EXEC SQL ROLLBACK WORK RELEASE;
buflen = sizeof (buf);
sqlglm(buf, &buflen, &msglen);
printf("%s\n", msg);
printf("%*.s\n", msglen, buf);
exit(1);
Why won't it recognize userid ? And that is a valid login/password. -
Problems with Java, (i.e, compiling, etc) & Terminal Window
I am having a problem compiling my program in the Terminal Window. I am working on Java for my ICS class and the first project compiled and ran fine through Terminal Window, but when the next assignment came, it throws this error:
class file has wrong version 50.0, should be 49.0
Here's the screen image:
http://tinypic.com/view.php?pic=6ywfbx3&s=1
I'm not sure what the problem is, is there an expert out there? Also, I think there is something wrong with my Terminal Window as I cannot change directories, run/compile program "in" the shell, for example, when I want to compile a program, I have to press "COMMANDSHIFTN" so I can run it from here(it's the "New Command" window:
http://tinypic.com/view.php?pic=879bqrd&s=1
Whereas I have seen every other Mac user in my class compile their program easily by pressing Enter "in" the shell, just like command prompt.
If I am not making myself clear please let me know, I'm trying to explain as specifically as I can.
One more note:
When I type in the shell and press Enter, it just goes down a line like a Word document.
Here is an example, it follows in order:
1) http://tinypic.com/view.php?pic=6z955oh&s=1
2) http://tinypic.com/view.php?pic=8aw1dox&s=1
3) http://tinypic.com/view.php?pic=7xln5fp&s=1
4) http://tinypic.com/view.php?pic=873mr5w&s=1For your issues with Terminal:
Discussions > Mac OS X Technologies > Unix
For your Java problems:
Discussions > Developer Forums
You're more likely to find answers to your questions there…
Maybe you are looking for
-
Today i have found this issue which i was not aware of. i have a team site collection, and inside this site collection i have an announcement App. now when users create announcement items and they insert pictures inside the items , all the images are
-
Query timeout on 10g thin driver
I'm using the Statement.setQueryTimeout(...) method, but it doesn't seem to work when the server is shutdown. I do the following: 1) create the statement and set the query timeout to 30 seconds 2) run a query that gets stuck waiting for a lock (ie se
-
Automotatic Message Determination:Consignment Settlement
Friends, I need some help in after doing the consignment settlement process: After I run MRKO and settle the consignment once a month, I need to send a form to the vendor detailing the settlements done over the period of one month. My questions speci
-
Website has sent an untrusted certificate accept a...
today when i opened the ovi maps as usual and then opened weather and as normal it asks me to go online to use the service any ways i tapped yes and proceeded but this time a new message appeared (website has sent an untrusted certificate accept any
-
Any other way to learn configuration for FICO
Dear all gurus, I am FICO 1st level support in my company and not granted to access SPRO. I want to learn setting and configuration. Is there any standalone program or stimulator that provide the chance to access into SPRO? Please help and thousand t