当前位置: 技术问答>linux和unix
请问:用C++写的proc程序,怎样编译啊?
来源: 互联网 发布时间:2016-02-09
本文导语: 在a.h, a.cpp文件中有一些函数,其中的proc*c程序也在其中, 文件main.pc中调用a.h,a.cpp中写的函数进行运行, 我用 proc iname=main.pc oname=main.cpp 预编译,有错误,不知道是怎么回事啊 错误为: Pro*C/C++: Release 8.1.7.0.0 - ...
在a.h, a.cpp文件中有一些函数,其中的proc*c程序也在其中,
文件main.pc中调用a.h,a.cpp中写的函数进行运行,
我用
proc iname=main.pc oname=main.cpp 预编译,有错误,不知道是怎么回事啊
错误为:
Pro*C/C++: Release 8.1.7.0.0 - Production on Tue Sep 4 18:43:23 2007
(c) Copyright 2000 Oracle Corporation. All rights reserved.
System default option values taken from: /oracle/8.1.7/precomp/admin/pcscfg.cfg
Syntax error at line 1, column 1, file /usr/local/include/g++-3/iostream:
Error at line 1, column 1 in file /usr/local/include/g++-3/iostream
// -*- C++ -*- forwarding header.
1
PCC-S-02201, Encountered the symbol "/" when expecting one of the following:
; ( * auto, char, const, double, enum, extern, 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,
typedef, union, unsigned, utext, uvarchar, varchar, void,
volatile, an identifier, a typedef name,
a precompiled header, an immediate preprocessor command,
exec oracle, exec oracle begin, exec, exec sql,
exec sql begin, exec sql type, exec sql var,
exec sql include,
Error at line 0, column 0 in file main.pc
PCC-F-02102, Fatal error while doing C preprocessing
文件main.pc中调用a.h,a.cpp中写的函数进行运行,
我用
proc iname=main.pc oname=main.cpp 预编译,有错误,不知道是怎么回事啊
错误为:
Pro*C/C++: Release 8.1.7.0.0 - Production on Tue Sep 4 18:43:23 2007
(c) Copyright 2000 Oracle Corporation. All rights reserved.
System default option values taken from: /oracle/8.1.7/precomp/admin/pcscfg.cfg
Syntax error at line 1, column 1, file /usr/local/include/g++-3/iostream:
Error at line 1, column 1 in file /usr/local/include/g++-3/iostream
// -*- C++ -*- forwarding header.
1
PCC-S-02201, Encountered the symbol "/" when expecting one of the following:
; ( * auto, char, const, double, enum, extern, 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,
typedef, union, unsigned, utext, uvarchar, varchar, void,
volatile, an identifier, a typedef name,
a precompiled header, an immediate preprocessor command,
exec oracle, exec oracle begin, exec, exec sql,
exec sql begin, exec sql type, exec sql var,
exec sql include,
Error at line 0, column 0 in file main.pc
PCC-F-02102, Fatal error while doing C preprocessing
|
检查编译环境路径
|
自己写一个Mikefile
用gmake编译..
用gmake编译..
|
Syntax error at line 1, column 1, file /usr/local/include/g++-3/iostream:
检查你程序中#include 上面一行, include了哪个文件, 应该是那个文件末尾的问题.
检查你程序中#include 上面一行, include了哪个文件, 应该是那个文件末尾的问题.
|
怎么会有这样的问题呢?