Similar to struct, union or hashtable in c++
dear experts, this is similar to struct in c++ or union in C++ or hashtable, but can we can create an array in c# and store in it, various variable name and their type. if so, how do we do so. for further explanation...see example below. I want to be able to create anarray(not sure of the terminology to use) called arr and store in it 6, "boy", 'c', null and also its type, for example since 6 is an integer, i store number, since boy is a string, i store varchar2 as well...how do i got about writing a simple code for that. all help is appreciated. Finally, I would also like to pass such array(not sure of the terminology to use) as a parameter. Can someone please explain how to do this without cursors, a simple code will help. I need to understand the idealogy for learning purposes
user13328581 wrote:
that is not what i am looking for...I will try to expplain it further....First of all structure and array have nothing in common, so it is difficult to answer correctly when you say "similar to struct in c++ or union in C++ or hashtable". It looks like you need an object:
CREATE OR REPLACE
TYPE param_set_type
AS OBJECT(
param1 NUMBER,
param2 NUMBER, -- since second param in your example is NULL I don't know what type to use, so I used NUMER
param3 VARCHAR2(100)
-- now I can use object type as procedure parameter type
CREATE OR REPLACE
PROCEDURE P1(
p_param_set param_set_type
END;
-- procedure call
BEGIN
p1(
param_set_type
6,
null,
'boy'
end;
/SY.
Similar Messages
-
Hey, I just read Jamowa's dilemma, and it sounds like mine--moving my files by drag and drop to an external hd. I lost everything in iTunes, so attempted to move them back and created a mess--I don't know which library is the original, and which to import into iTunes, using the re-create library step. So far, my fix has not been so easy as Jamowa's.
user13328581 wrote:
that is not what i am looking for...I will try to expplain it further....First of all structure and array have nothing in common, so it is difficult to answer correctly when you say "similar to struct in c++ or union in C++ or hashtable". It looks like you need an object:
CREATE OR REPLACE
TYPE param_set_type
AS OBJECT(
param1 NUMBER,
param2 NUMBER, -- since second param in your example is NULL I don't know what type to use, so I used NUMER
param3 VARCHAR2(100)
-- now I can use object type as procedure parameter type
CREATE OR REPLACE
PROCEDURE P1(
p_param_set param_set_type
END;
-- procedure call
BEGIN
p1(
param_set_type
6,
null,
'boy'
end;
/SY. -
How to pass a struct to a DLL function and accessing it in another VI
Hi friends,
I am new to labview. I need to create a demo program in labview ,for displaying image from our own image capturing system. We have a DLL ( build in VC++) containing functions for capturing image from our system. Now I need to create a VI library for some of functions in DLL and Create a Demo program using those created subvi library . I used "Call Function node" and created some of subvi's.
Some of our DLL functions need to pass struct pointers. Our function prototype will be similar to the following function.
__declspec(dllexport) int __stdcall Initialize( unsigned char *imagebuffer,struct config *Configuration);
The passed struct is similar to
struct config
double val1[3];
unsigned short val2;
bool val3;
bool val4[3];
unsigned char val5;
unsigned char val6[3];
bool val7[26];
For passing "unsigned char *imagebuffer" I initialized array with "Numeric constant " and set the size of the array and send to the function.
The problem here is, I used this array in one of the subvi.
How can I use the returned imagebuffer array in my main demo program. How to connect the image array to subvi "Connecter Pane"
And which control can I use to display the image. The image data I get is form of 1-D Array .
The second problem is,
For passing the structure, I used "Bundle " and filled the bundle with all the datatypes as in my struct and passed to the function. Is it correct ? How to access this bundle after returned from function in another Vi. ie.) How to connect this bundle to the connter pane ?
Thanks for your valuable suggestions.
aajjf.
Message Edited by aajjf on 04-19-2007 05:34 AMaajjf wrote:
Hi friends,
I am new to labview. I need to create a demo program in labview ,for displaying image from our own image capturing system. We have a DLL ( build in VC++) containing functions for capturing image from our system. Now I need to create a VI library for some of functions in DLL and Create a Demo program using those created subvi library . I used "Call Function node" and created some of subvi's.
Some of our DLL functions need to pass struct pointers. Our function prototype will be similar to the following function.
__declspec(dllexport) int __stdcall Initialize( unsigned char *imagebuffer,struct config *Configuration);
The passed struct is similar to
struct config
double val1[3];
unsigned short val2;
bool val3;
bool val4[3];
unsigned char val5;
unsigned char val6[3];
bool val7[26];
For passing "unsigned char *imagebuffer" I initialized array with "Numeric constant " and set the size of the array and send to the function.
The problem here is, I used this array in one of the subvi.
How can I use the returned imagebuffer array in my main demo program. How to connect the image array to subvi "Connecter Pane"
And which control can I use to display the image. The image data I get is form of 1-D Array .
The second problem is,
For passing the structure, I used "Bundle " and filled the bundle with all the datatypes as in my struct and passed to the function. Is it correct ? How to access this bundle after returned from function in another Vi. ie.) How to connect this bundle to the connter pane ?
Thanks for your valuable suggestions.
aajjf.
Message Edited by aajjf on 04-19-2007 05:34 AM
You say nothing about how your cluster looks but I'm afraid you did the standard error here and placed arrays in it. That is not what the C structure is representing for several reasons.
First fixed size arrays in C are inlined inside a structure, so are not a pointer but for the case of your val1 element three doubles.
Second although not relevant here because of above point: LabVIEW arrays are not the same as C arrays. LabVIEW uses a pointer to a pointer and has the size of the array in elements prepended to the array data. C simply uses a pointer and all the rest is the programmers sorrow. The Call Library Node does convert the top level element of variables you pass according to the type configuration of that parameter but does no conversion of internal elements at all. So passing clusters with anything like arrays or strings is always wrong unless the DLL is aware of the specific datatypes LabVIEW uses.
Last but not least you can end up with alignment issues. Elements in structures are aligned by every C compiler to a certain value. This value can be defined by the programmer in the project settings or for Visual C through #pragma pack() statements in the C code. The alignment rule says that an variable is aligned to the smaller of the two values that are either a multiple of the variable element size or the alignment setting. Most 32bit code nowadays uses 8 bit default alignment but LabVIEW always uses 1 byte. In your case there is nothing to observe since the large variables are at the beginning. Otherwise you might have had to insert filler elements in the LabVIEW cluster.
One last thing bool is a C++ type only. Its size is 1 byte and incidentially this is the same LabVIEW uses for Booleans.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Hi there,
I was just wondering if a Hashtable is more efficient than a Vector for holding small amounts of objects.
The fuctionality that I require allows me to use either but Id like to use the most efficient if I can find out which that would be.
Thanks,
NickFiontan,
You can't compare two things that are not comparable.My bad, the Comparable interface is a Java 2 construct also. You could still code your own binary search for the Vector however, using the knowledge that it only contains Strings, which you can manually compare.
Or, if speed really isn't important, then you could use the existing contains (was this in 1.0?) or indexOf method to test if the string exists, and just go with the linear performance. In a list with 5 elements (Each equally likely), that's less than 3 comparisons on average, compared with more than 1 (hash + equals, at minimum) for a hashtable.
The hashtable is a special structure used to keep
objects that are unique and accessible through a
unique hashcode, so the access can be make in O(1).A hashtable is an implementation of both the (mathematical) map and (mathematical) set construct. A map is a function that literally maps a value from one set onto another value from another (or the same) set. If a map simply maps a value onto itself, then that map is just an identity map on a set.
This differs from a Vector, which is simply an ordered list of values. Such a list can be a backing for larger mathematical constructs (Indeed, a similar ordered list forms part of the backing for a hashtable). Since their purpose overlaps, there may well be cases where either is appropriate. In many such cases, there will be one which is 'obviously' more appropriate, but that's no reason to assume that in all cases it is either 'one or the other'.
But, if you don't have any key on your objects, and
you want to add the same object several times, and you
want to have an sequential ordered access : use a
Vector (or a similar structure) but not an HashTable.I'd change each of your 'and's to 'or's, since a hashtable will not fulfil any of those requirements - so any one of them will render a hashtable unusable. Note that in a set, an object forms its own key.
Just to throw a spanner in the works, I suddenly recall that in Java 1.0, String's hashCode method was rather inefficient - it creates a poor hash, and it doesn't store the result of the calculation (Meaning it is recalculated for each call to hashCode). If your strings are large, the Vector may match or out-perform the HashTable!
-Troy -
Combine with similar request dived values
Dear All,
I have one report with using Combine with similar request.(Union)
TableA
Name Amount SAR
TableB
Name Amt SAR
Result Column:
Name Salary
My requirment in salary result column i shoul use divided by 100.
When i clicl fn button i am not able to see in result column.
How will divide /100 then Multipla with another result column SAR
Thanks
Govind RHi ,
When you are using the combine with similar request..
under the results columns we wil not have the fx there will be only formarting options avilable.
If you want to perform any calculation you have to do on the each criteria ..then it will work
Thanks,
Ananth -
Is there a UNION (ALL) command in OPEN SQL? I'm attempting to join several tables and take the maximum date to be used as output into a text file.
I'm attempting to do something like the following query, but it isn't working:
SELECT pernr
MAX(
SELECT begda FROM pa0000 WHERE pernr = wa_pernrs-pernr AND ( begda > c_date AND begda < p_date )
UNION ALL
SELECT begda FROM pa0001 WHERE pernr = wa_pernrs-pernr AND ( begda > c_date AND begda < p_date )
UNION ALL
SELECT begda FROM pa0002 WHERE pernr = wa_pernrs-pernr AND ( begda > c_date AND begda < p_date )
UNION ALL
SELECT begda FROM pa0008 WHERE pernr = wa_pernrs-pernr AND ( begda > c_date AND begda < p_date )
UNION ALL
SELECT begda FROM pa0041 WHERE pernr = wa_pernrs-pernr AND ( begda > c_date AND begda < p_date )
INTO TABLE it_dates
FROM pa0000 AS a
INNER JOIN pa0001 AS b ON apernr = bpernr
INNER JOIN pa0002 AS c ON apernr = cpernr
INNER JOIN pa0008 AS d ON apernr = dpernr
INNER JOIN pa0041 AS e ON apernr = epernr
LEFT OUTER JOIN csks AS f ON bkostl = fkostl
" UP TO 1000 ROWS
WHERE ( abegda > c_date AND abegda < p_date ) OR
( bbegda > c_date AND bbegda < p_date ) OR
( cbegda > c_date AND cbegda < p_date ) OR
( dbegda > c_date AND dbegda < p_date ) OR
( ebegda > p_date AND ebegda < p_date ).
Thank you in advance.Hi,
a little bit late - I'm almost sure you are allready out of this topic.
I'm in a middle of similar research regarding "union all". Obviously OPEN SQL can't handle UNION additon, but in some cases we may rely on NATIVE SQL, depending on are our statements hardly "OpenSql-ed" or not.
For further similar cases - check the SAP integrated help for a command "EXEC SQL....ENDEXEC". I was curious to find out there is even possibility to create and use stored procedures...
In other words, if you prefer not to rely on open sql sintax (with all its advantages and disadvantages) you may play arround with native sql. I suppose native sql syntax is based on SQL92 standard and all RDBMS specific additions (means Oracle, DB2, MsSql and so on) might not be supported, but never found any topic is that correct or not.
Regards,
Ivaylo Mutafchiev -
OBIEE 10.1.3.3: We have a number of HR turnover reports that require calculations that use a formula of: #txns / average headcount. We need to run these reports for whatever beginning/ending dates the users enter. And, of course they need to be sliced and diced by any number of dimensions. I came up with a couple of different schemes to do this but keep running into roadblocks. It seems that a union is my best bet. here's the latest one generated:
SELECT saw_0, saw_1, saw_2, saw_3, saw_4, (saw_3 + saw_4)/2 saw_5,
(saw_2 / (saw_3 + saw_4)/2)*100 saw_6
FROM
((SELECT saw_0, saw_1, saw_2, saw_3, saw_4 FROM ... WHERE...)
UNION
(SELECT saw_0, saw_1, saw_2, saw_3, saw_4 FROM ... WHERE...)
UNION
(SELECT saw_0, saw_1, saw_2, saw_3, saw_4 FROM ... WHERE...)
)) t1 ORDER BY saw_0, saw_1
the first union select puts #txns in saw_2 and zeroes in saw_3 and saw_4
the second union select puts 1st date headcount in saw_3 and zeroes in saw_2 and saw_4
the third union select puts 2nd date headcount in saw_4, and zeroes in saw_2 and saw_3
The saw_6 calc won't work because the overall query needs to be aggregated. Here's the problem: When I add sum() clauses to the main query, it blows up because of no group by clause, and if I go into Advanced and try to add the group by and hit set sql, Answers cuts off the query and tells me there's no group by, even though it properly places the saw_0,saw_1 fields in the group by box below. Seems like a bug in Answers, because when I take the SQL I altered and run it from the Admin SQL tool, it returns the result I wanted.
Any ideas? If you got this far, thanks for reading all of this...
GregI am using very similar query with union all and sum () to get approval ratings between any given dates, but I did not explicitly specify groupby and it works. I am using 7.8.4.
-
Initialize an array of union types
Hi,
I'm trying to the use the C99 designated initializer feature to initialize an array of union types, but I'm getting a compiler error as shown below. Am I using the correct syntax?
#include <stdio.h>
union U
struct {int data;} a;
struct {int type; float data;} b;
int
main()
union U x = {.b.type = 2, .b.data = 1.0};
union U y[] = {{.b.type = 2, .b.data = 1.0}};
fprintf(stderr, "x b data: %f\n", x.b.data);
fprintf(stderr, "y b data: %f\n", y[0].b.data);
return 0;
}% cc u.c
"u.c", line 13: structure/union designator used on non-struct/union type
"u.c", line 13: structure/union designator used on non-struct/union type
cc: acomp failed for u.c
% cc -Version
cc: Sun C 5.9 DEV 2006/06/08
%union U x = { .b = { .type = 2, .data = 1.0 } };
union U y[] = {{.b = { .type = 2, .data = 1.0}}}; -
Typedef Error when compiling niScope for DLL using CVI
I am getting the following error when trying to compile a DLL for the NI 5122 digitizer using CVI:
Error creating type library:
All structs, unions, and enums required by exported functions must be typedefs in order to create a type library. The struct/union/enum "niScope_wfmInfo" does not use such a typedef.
I have created a variable and "typedefed" it as niScope_wfmInfo to try and get rid of this error. This did not work. I have tried making several other changes. Some have eliminated the error but created problems with the DLL.
Has anyone had a similar error to this? If so, how did you get around it?
Thanks,
HeatherHi Heather,
The reason that you are receiving this error is because the niscope.h file (called by niScope.fp) uses a struct which cannot be compiled into a DLL. This means that the niScope.fp file cannot be included in the target settings. Here's a knowledgebase that describes the error.
http://digital.ni.com/public.nsf/websearch/AC028D9586E947F08625661E006A182F?OpenDocument
If you do want the niScope.fp file to be included then you will need to make some modifications to the niscope.h file and create a typedef for the niScope_wfmInfo struct. Here's info from the help file that describes the type library section and the use of the .fp file.
"Type Library—This button lets you choose whether to add a type library resource to your DLL. Also, you can choose to include links in the type library resource to a Windows help file. LabWindows/CVI generates the type library resource from a function panel (.fp) file. You must specify the name of the .fp file. You can generate a Windows help file from the .fp file by using the Generate Windows Help command in the Options menu of the Function Tree Editor window.
This feature is useful if you intend for your DLL to be used from Visual Basic."
If you do not include the niScope.fp file then you will be able to compile the DLL.
Hope this helps! Let me know if you have any questions.
Erick -
Pro*C Compilation Problems
I am a member of the OTN, from which I received Oracle V8.1.6. I recently got around to installing the Oracle Server V8.1.6 on Red Hat Linux V6.1. I eventually got everything installed and proceded to test the Pro*C sample programs. I "compiled" all the related SQL programs and created the tables. The problem is that when I use the "make" program "demo_proc.mk" to build any of the sample*.c programs I get the following error :
make -f demo_proc.mk build
cc -o -L /u01/app/oracle/product/8.1.6/lib/ -lclntsh `cat /u01/app/oracle/pr
oduct/8.1.6/lib/sysliblist` -ldl -lm
/u01/app/oracle/product/8.1.6/lib/: file not recognized: Is a directory
collect2: ld returned 1 exit status
make: *** [build] Error 1
or whe make -f demo_proc.mk build_static
make -f demo_proc.mk build_static
cc -o -L /u01/app/oracle/product/8.1.6/lib/ -lclient8 /u01/app/oracle/product/
8.1.6/lib/libsql8.a /u01/app/oracle/product/8.1.6/lib/scorept.o /u01/app/oracle/
product/8.1.6/lib/sscoreed.o /u01/app/oracle/product/8.1.6/rdbms/lib/kpudfo.o `
cat /u01/app/oracle/product/8.1.6/lib/ldflags` -lnsgr8 -lnzjs8 -ln8 -lnl8 -l
nro8 `cat /u01/app/oracle/product/8.1.6/lib/ldflags` -lnsgr8 -lnzjs8 -ln8 -l
nl8 -lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneric8 -lwtc8 -lmm -lnls8 -lcore8 -l
nls8 -lcore8 -lnls8 `cat /u01/app/oracle/product/8.1.6/lib/ldflags` -lnsgr8
-lnzjs8 -ln8 -lnl8 -lnro8 `cat /u01/app/oracle/product/8.1.6/lib/ldflags` -
lnsgr8 -lnzjs8 -ln8 -lnl8 -lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneric8 -lpls8
-ltrace8 -lnls8 -lcore8 -lnls8 -lcore8 -lnls8 -lclient8 -lvsn8 -lwtc8 -lcommo
n8 -lgeneric8 -lnls8 -lcore8 -lnls8 -lcore8 -lnls8 `cat /u01/app/oracle/prod
uct/8.1.6/lib/sysliblist` -ldl -lm /u01/app/oracle/product/8.1.6/lib/nautab.o /
u01/app/oracle/product/8.1.6/lib/naeet.o /u01/app/oracle/product/8.1.6/lib/naect
.o /u01/app/oracle/product/8.1.6/lib/naedhs.o /u01/app/oracle/product/8.1.6/rdb
ms/lib/xaondy.o
/u01/app/oracle/product/8.1.6/lib/: file not recognized: Is a directory
collect2: ld returned 1 exit status
make: *** [build_static] Error 1
I have checked that the directories are valid and readable, but to no avail. I have setup the pcscfg.cfg as follows :
sys_include=(/usr/include,/usr/src/linux/include,/usr/src/linux/include/linux/in
clude,/usr/include/g++-2,/usr/lib/bcc/include)
include=/u01/app/oracle/product/8.1.6/precomp/public
include=/u01/app/oracle/product/8.1.6/precomp/hdrs
include=/u01/app/oracle/product/8.1.6/tpcc2x_2/src
include=/u01/app/oracle/product/8.1.6/precomp/include
include=/u01/app/oracle/product/8.1.6/oracore/include
include=/u01/app/oracle/product/8.1.6/oracore/public
include=/u01/app/oracle/product/8.1.6/rdbms/include
include=/u01/app/oracle/product/8.1.6/rdbms/public
include=/u01/app/oracle/product/8.1.6/rdbms/demo
include=/u01/app/oracle/product/8.1.6/nlsrtl/include
include=/u01/app/oracle/product/8.1.6/nlsrtl/public
include=/u01/app/oracle/product/8.1.6/network_src/include
include=/u01/app/oracle/product/8.1.6/network_src/public
include=/u01/app/oracle/product/8.1.6/network/include
include=/u01/app/oracle/product/8.1.6/network/public
include=/u01/app/oracle/product/8.1.6/plsql/public
code=ansi_c
ltype=short
sqlcheck=full
But I am able to build the CPPPro*C sample, albeit with loads of warnings.
I have followed all the installation instructions and the help provide on the technet site, but I still cannot get this to work.
or when I just try to "proc sample1.pc", I get the following
Pro*C/C++: Release 8.1.6.0.0 - Production on Tue Apr 10 09:17:37 2001
(c) Copyright 1999 Oracle Corporation. All rights reserved.
System default option values taken from: /u01/app/oracle/product/8.1.6/precomp/a
dmin/pcscfg.cfg
Syntax error at line 263, column 12, file /usr/include/libio.h:
Error at line 263, column 12 in file /usr/include/libio.h
size_t __nbytes));
...........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 272, column 11, file /usr/include/libio.h:
Error at line 272, column 11 in file /usr/include/libio.h
size_t __n));
..........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 364, column 9, file /usr/include/libio.h:
Error at line 364, column 9 in file /usr/include/libio.h
IOva_list, int *__restrict));
........1
PCC-S-02201, Encountered the symbol "__gnuc_va_list" when expecting one of the f
ollowing:
... 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 "auto," was substituted for "__gnuc_va_list" to continue.
Syntax error at line 366, column 10, file /usr/include/libio.h:
Error at line 366, column 10 in file /usr/include/libio.h
IOva_list));
.........1
PCC-S-02201, Encountered the symbol "__gnuc_va_list" when expecting one of the f
ollowing:
... 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 "auto," was substituted for "__gnuc_va_list" to continue.
Syntax error at line 368, column 19, file /usr/include/libio.h:
Error at line 368, column 19 in file /usr/include/libio.h
extern IOsize_t IOsgetn __P ((_IO_FILE *, void *, IOsize_t));
..................1
PCC-S-02201, Encountered the symbol "_IO_sgetn" when expecting one of the follow
ing:
; , = ( [
The symbol ";" was substituted for "_IO_sgetn" to continue.
Syntax error at line 368, column 55, file /usr/include/libio.h:
Error at line 368, column 55 in file /usr/include/libio.h
extern IOsize_t IOsgetn __P ((_IO_FILE *, void *, IOsize_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 "auto," was substituted for "size_t" to continue.
Syntax error at line 233, column 18, file /usr/include/stdio.h:
Error at line 233, column 18 in file /usr/include/stdio.h
int __modes, size_t __n));
.................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 239, column 8, file /usr/include/stdio.h:
Error at line 239, column 8 in file /usr/include/stdio.h
size_t __size));
.......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 258, column 6, file /usr/include/stdio.h:
Error at line 258, column 6 in file /usr/include/stdio.h
Gva_list __arg));
.....1
PCC-S-02201, Encountered the symbol "__gnuc_va_list" when expecting one of the f
ollowing:
... 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 "__gnuc_va_list" to continue.
Syntax error at line 261, column 5, file /usr/include/stdio.h:
Error at line 261, column 5 in file /usr/include/stdio.h
Gva_list __arg));
....1
PCC-S-02201, Encountered the symbol "__gnuc_va_list" when expecting one of the f
ollowing:
... 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 "__gnuc_va_list" to continue.
Syntax error at line 265, column 6, file /usr/include/stdio.h:
Error at line 265, column 6 in file /usr/include/stdio.h
Gva_list __arg));
.....1
PCC-S-02201, Encountered the symbol "__gnuc_va_list" when expecting one of the f
ollowing:
... 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 "__gnuc_va_list" to continue.
Syntax error at line 269, column 49, file /usr/include/stdio.h:
Error at line 269, column 49 in file /usr/include/stdio.h
extern int snprintf __P ((char *__restrict __s, size_t __maxlen,
................................................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 273, column 52, file /usr/include/stdio.h:
Error at line 273, column 52 in file /usr/include/stdio.h
extern int __vsnprintf __P ((char *__restrict __s, size_t __maxlen,
...................................................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 275, column 9, file /usr/include/stdio.h:
Error at line 275, column 9 in file /usr/include/stdio.h
Gva_list __arg))
........1
PCC-S-02201, Encountered the symbol "__gnuc_va_list" when expecting one of the f
ollowing:
... 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 "__gnuc_va_list" to continue.
Syntax error at line 277, column 50, file /usr/include/stdio.h:
Error at line 277, column 50 in file /usr/include/stdio.h
extern int vsnprintf __P ((char *__restrict __s, size_t __maxlen,
.................................................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 279, column 7, file /usr/include/stdio.h:
Error at line 279, column 7 in file /usr/include/stdio.h
Gva_list __arg))
......1
PCC-S-02201, Encountered the symbol "__gnuc_va_list" when expecting one of the f
ollowing:
... 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 "__gnuc_va_list" to continue.
Syntax error at line 442, column 15, file /usr/include/stdio.h:
Error at line 442, column 15 in file /usr/include/stdio.h
extern size_t fread __P ((void *__restrict __ptr, size_t __size,
..............1
PCC-S-02201, Encountered the symbol "fread" when expecting one of the following:
; , = ( [
The symbol ";" was substituted for "fread" to continue.
Syntax error at line 442, column 51, file /usr/include/stdio.h:
Error at line 442, column 51 in file /usr/include/stdio.h
extern size_t fread __P ((void *__restrict __ptr, size_t __size,
..................................................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 "exec," was substituted for "size_t" to continue.
Syntax error at line 445, column 1, file /usr/include/stdio.h:
Error at line 445, column 1 in file /usr/include/stdio.h
extern size_t fwrite __P ((__const void *__restrict __ptr, size_t __size,
1
PCC-S-02201, Encountered the symbol "extern" when expecting one of the following
Error at line 0, column 0 in file sample1.pc
PCC-F-02102, Fatal error while doing C preprocessing
The same error occurs when I hacked an old make file from an old project to make sample1.pc
CC=gcc
CINC=$(SQL)/inc
SLIB=-L$(SQL)/lib -L$(CLIB)
LIBSAL=-lsal -lacc
ECHO=$(ORACLE_HOME)/bin/echodo
OBJS= sample1.o
# CK Leave this in. I might get this makefile working correctly
# at some future date.
#HDRS = cs_alloc_segment.h \
# orafunc.h
GET = get
GFLAGS =
CFLAGS= -O -DNDEBUG
# Acct Targets
AC_PRODUCTION_TARGETS= \
sample1
ac_production_targets: $(AC_PRODUCTION_TARGETS)
sample1: $(OBJS) \
$(PROC) $(PROCPLSFLAGS) iname=sample1.pc
@$(ECHO) $(CC) $(CFLAGS) -w0 -I $(CINC) $(LDFLAGS) \
-o sample \
$(PROLDLIBS) $(CLIB)/libacc.a \
-DSCRIPT_HARNESS sample1.c
rm sample1.c sample1.o
The reason I am doing this, is that the place where I'm currently working are trying to choose between NT/SQL-Server and Linux/Oracle. I am trying to prove that the latter is the better development/production platform. If you could give me any help on the above, I would be grateful.
regards
TimI have experienced similar to your PRO*C problems when trying to
compile the code containing function with variable number of
arguments (ellipse). The Pro*C complaind about the line
containing: va_list args;. It simply seems that in 8i version of
Oracle the PRO*C is not capable to preprocess this kind of
construct (and in your example there are more constructs it does
not cope with ;-).
My workaround was to set PARSE=PARTIAL option. Then the PRO*C is
only pre-processing the code found in declare sections and in
EXEC SQL sections. This means that the pre-processor will work
fine if you don't put the 'unparsable' constructs in any of
these sections. It worked for me... at least.
Regards,
P. -
Convert jstring to char array or int array
Hi all, please help with the following code. I've tested this code with hard coded char array and it works. Now I have to get the char array from parameter "param1" which is passed from Java.
The following code compiled with error message:
error C2223: left of '->GetStringUTFChars' must point to struct/union
JNIEXPORT void JNICALL Java_DongleSet_DongleWrite(JNIEnv *env,jobject obj,jstring param1){
char HaspBuffer[500]=(char)env->GetStringUTFChars(param1,NULL);
int Service=MEMOHASP_WRITEBLOCK;
int SeedCode=300;
int LptNum=0;
int Pass1=pass1;
int Pass2=pass2;
int p1=0;
int p2=12;
int p3=0;
int p4=(int)HaspBuffer;
hasp(Service,SeedCode,LptNum,Pass1,Pass2,&p1,&p2,&p3,&p4);
I've tried this:char HaspBuffer[500]=env->GetStringUTFChars(param1,NULL);
And this:char HaspBuffer[500]=(*env)->GetStringUTFChars(param1,NULL);
All give me errors.
Please help.char * HaspBuffer=(*env)->GetStringUTFChars(param1,NULL); When writing pure C, you have to supply the JNIEnv as first arg to every JNIEnv function pointer.char * HaspBuffer=(*env)->GetStringUTFChars(env, param1, NULL);Look here: http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/jnistring.html
-
Running object track code on visual c++ with open CV
Dear all,
I am newbie to config the open CV in visual c++.
i have visual studio 2013 desktop version & open CV beta v3.0; I have config the data as per link shared
Config opencv I have downloaded the example code from youtube ; link for the code as followyoutube
link
visual c++ code
#include <sstream>
#include <string>
#include <iostream>
#include <opencv\highgui.h>
#include <opencv\cv.h>
using namespace cv;
//initial min and max HSV filter values.
//these will be changed using trackbars
int H_MIN = 0;
int H_MAX = 256;
int S_MIN = 0;
int S_MAX = 256;
int V_MIN = 0;
int V_MAX = 256;
//default capture width and height
const int FRAME_WIDTH = 640;
const int FRAME_HEIGHT = 480;
//max number of objects to be detected in frame
const int MAX_NUM_OBJECTS=50;
//minimum and maximum object area
const int MIN_OBJECT_AREA = 20*20;
const int MAX_OBJECT_AREA = FRAME_HEIGHT*FRAME_WIDTH/1.5;
//names that will appear at the top of each window
const string windowName = "Original Image";
const string windowName1 = "HSV Image";
const string windowName2 = "Thresholded Image";
const string windowName3 = "After Morphological Operations";
const string trackbarWindowName = "Trackbars";
void on_trackbar( int, void* )
{//This function gets called whenever a
// trackbar position is changed
string intToString(int number){
std::stringstream ss;
ss << number;
return ss.str();
void createTrackbars(){
//create window for trackbars
namedWindow(trackbarWindowName,0);
//create memory to store trackbar name on window
char TrackbarName[50];
sprintf( TrackbarName, "H_MIN", H_MIN);
sprintf( TrackbarName, "H_MAX", H_MAX);
sprintf( TrackbarName, "S_MIN", S_MIN);
sprintf( TrackbarName, "S_MAX", S_MAX);
sprintf( TrackbarName, "V_MIN", V_MIN);
sprintf( TrackbarName, "V_MAX", V_MAX);
//create trackbars and insert them into window
//3 parameters are: the address of the variable that is changing when the trackbar is moved(eg.H_LOW),
//the max value the trackbar can move (eg. H_HIGH),
//and the function that is called whenever the trackbar is moved(eg. on_trackbar)
// ----> ----> ---->
createTrackbar( "H_MIN", trackbarWindowName, &H_MIN, H_MAX, on_trackbar );
createTrackbar( "H_MAX", trackbarWindowName, &H_MAX, H_MAX, on_trackbar );
createTrackbar( "S_MIN", trackbarWindowName, &S_MIN, S_MAX, on_trackbar );
createTrackbar( "S_MAX", trackbarWindowName, &S_MAX, S_MAX, on_trackbar );
createTrackbar( "V_MIN", trackbarWindowName, &V_MIN, V_MAX, on_trackbar );
createTrackbar( "V_MAX", trackbarWindowName, &V_MAX, V_MAX, on_trackbar );
void drawObject(int x, int y,Mat &frame){
//use some of the openCV drawing functions to draw crosshairs
//on your tracked image!
//UPDATE:JUNE 18TH, 2013
//added 'if' and 'else' statements to prevent
//memory errors from writing off the screen (ie. (-25,-25) is not within the window!)
circle(frame,Point(x,y),20,Scalar(0,255,0),2);
if(y-25>0)
line(frame,Point(x,y),Point(x,y-25),Scalar(0,255,0),2);
else line(frame,Point(x,y),Point(x,0),Scalar(0,255,0),2);
if(y+25<FRAME_HEIGHT)
line(frame,Point(x,y),Point(x,y+25),Scalar(0,255,0),2);
else line(frame,Point(x,y),Point(x,FRAME_HEIGHT),Scalar(0,255,0),2);
if(x-25>0)
line(frame,Point(x,y),Point(x-25,y),Scalar(0,255,0),2);
else line(frame,Point(x,y),Point(0,y),Scalar(0,255,0),2);
if(x+25<FRAME_WIDTH)
line(frame,Point(x,y),Point(x+25,y),Scalar(0,255,0),2);
else line(frame,Point(x,y),Point(FRAME_WIDTH,y),Scalar(0,255,0),2);
putText(frame,intToString(x)+","+intToString(y),Point(x,y+30),1,1,Scalar(0,255,0),2);
void morphOps(Mat &thresh){
//create structuring element that will be used to "dilate" and "erode" image.
//the element chosen here is a 3px by 3px rectangle
Mat erodeElement = getStructuringElement( MORPH_RECT,Size(3,3));
//dilate with larger element so make sure object is nicely visible
Mat dilateElement = getStructuringElement( MORPH_RECT,Size(8,8));
erode(thresh,thresh,erodeElement);
erode(thresh,thresh,erodeElement);
dilate(thresh,thresh,dilateElement);
dilate(thresh,thresh,dilateElement);
void trackFilteredObject(int &x, int &y, Mat threshold, Mat &cameraFeed){
Mat temp;
threshold.copyTo(temp);
//these two vectors needed for output of findContours
vector< vector<Point> > contours;
vector<Vec4i> hierarchy;
//find contours of filtered image using openCV findContours function
findContours(temp,contours,hierarchy,CV_RETR_CCOMP,CV_CHAIN_APPROX_SIMPLE );
//use moments method to find our filtered object
double refArea = 0;
bool objectFound = false;
if (hierarchy.size() > 0) {
int numObjects = hierarchy.size();
//if number of objects greater than MAX_NUM_OBJECTS we have a noisy filter
if(numObjects<MAX_NUM_OBJECTS){
for (int index = 0; index >= 0; index = hierarchy[index][0]) {
Moments moment = moments((cv::Mat)contours[index]);
double area = moment.m00;
//if the area is less than 20 px by 20px then it is probably just noise
//if the area is the same as the 3/2 of the image size, probably just a bad filter
//we only want the object with the largest area so we safe a reference area each
//iteration and compare it to the area in the next iteration.
if(area>MIN_OBJECT_AREA && area<MAX_OBJECT_AREA && area>refArea){
x = moment.m10/area;
y = moment.m01/area;
objectFound = true;
refArea = area;
}else objectFound = false;
//let user know you found an object
if(objectFound ==true){
putText(cameraFeed,"Tracking Object",Point(0,50),2,1,Scalar(0,255,0),2);
//draw object location on screen
drawObject(x,y,cameraFeed);}
}else putText(cameraFeed,"TOO MUCH NOISE! ADJUST FILTER",Point(0,50),1,2,Scalar(0,0,255),2);
int main(int argc, char* argv[])
//some boolean variables for different functionality within this
//program
bool trackObjects = false;
bool useMorphOps = false;
//Matrix to store each frame of the webcam feed
Mat cameraFeed;
//matrix storage for HSV image
Mat HSV;
//matrix storage for binary threshold image
Mat threshold;
//x and y values for the location of the object
int x=0, y=0;
//create slider bars for HSV filtering
createTrackbars();
//video capture object to acquire webcam feed
VideoCapture capture;
//open capture object at location zero (default location for webcam)
capture.open(0);
//set height and width of capture frame
capture.set(CV_CAP_PROP_FRAME_WIDTH,FRAME_WIDTH);
capture.set(CV_CAP_PROP_FRAME_HEIGHT,FRAME_HEIGHT);
//start an infinite loop where webcam feed is copied to cameraFeed matrix
//all of our operations will be performed within this loop
while(1){
//store image to matrix
capture.read(cameraFeed);
//convert frame from BGR to HSV colorspace
cvtColor(cameraFeed,HSV,COLOR_BGR2HSV);
//filter HSV image between values and store filtered image to
//threshold matrix
inRange(HSV,Scalar(H_MIN,S_MIN,V_MIN),Scalar(H_MAX,S_MAX,V_MAX),threshold);
//perform morphological operations on thresholded image to eliminate noise
//and emphasize the filtered object(s)
if(useMorphOps)
morphOps(threshold);
//pass in thresholded frame to our object tracking function
//this function will return the x and y coordinates of the
//filtered object
if(trackObjects)
trackFilteredObject(x,y,threshold,cameraFeed);
//show frames
imshow(windowName2,threshold);
imshow(windowName,cameraFeed);
imshow(windowName1,HSV);
//delay 30ms so that screen can refresh.
//image will not appear without this waitKey() command
waitKey(30);
return 0;
For above code i config as per in video. But didnt get OPENCV_DEBUG243 file.
error i am getting as below. Let me know how can solve the issue. What are additional info i need to include here.
1>------ Build started: Project: ObjectTrackingTest, Configuration: Debug Win32 ------
1> ObjectTrackingTest.cpp
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\cwchar(29): error C2039: 'swprintf' : is not a member of '`global namespace''
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\cwchar(29): error C2873: 'swprintf' : symbol cannot be used in a using-declaration
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\cwchar(30): error C2039: 'vswprintf' : is not a member of '`global namespace''
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\cwchar(30): error C2873: 'vswprintf' : symbol cannot be used in a using-declaration
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(38): warning C4244: 'initializing' : conversion from 'double' to 'const int', possible loss of data
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(40): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(40): error C2146: syntax error : missing ';' before identifier 'windowName'
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(40): error C2440: 'initializing' : cannot convert from 'const char [15]' to 'int'
1> There is no context in which this conversion is possible
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(41): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(41): error C2146: syntax error : missing ';' before identifier 'windowName1'
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(41): error C2086: 'const int string' : redefinition
1> c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(40) : see declaration of 'string'
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(41): error C2440: 'initializing' : cannot convert from 'const char [10]' to 'int'
1> There is no context in which this conversion is possible
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(42): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(42): error C2146: syntax error : missing ';' before identifier 'windowName2'
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(42): error C2086: 'const int string' : redefinition
1> c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(40) : see declaration of 'string'
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(42): error C2440: 'initializing' : cannot convert from 'const char [18]' to 'int'
1> There is no context in which this conversion is possible
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(43): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(43): error C2146: syntax error : missing ';' before identifier 'windowName3'
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(43): error C2086: 'const int string' : redefinition
1> c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(40) : see declaration of 'string'
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(43): error C2440: 'initializing' : cannot convert from 'const char [31]' to 'int'
1> There is no context in which this conversion is possible
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(44): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(44): error C2146: syntax error : missing ';' before identifier 'trackbarWindowName'
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(44): error C2086: 'const int string' : redefinition
1> c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(40) : see declaration of 'string'
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(44): error C2440: 'initializing' : cannot convert from 'const char [10]' to 'int'
1> There is no context in which this conversion is possible
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(54): error C2146: syntax error : missing ';' before identifier 'intToString'
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(54): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(54): error C2373: 'string' : redefinition; different type modifiers
1> c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(40) : see declaration of 'string'
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(59): error C2440: 'return' : cannot convert from 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' to 'int'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(60): error C2617: 'intToString' : inconsistent return statement
1> c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(54) : see declaration of 'intToString'
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(65): error C3861: 'namedWindow': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(79): error C3861: 'createTrackbar': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(80): error C3861: 'createTrackbar': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(81): error C3861: 'createTrackbar': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(82): error C3861: 'createTrackbar': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(83): error C3861: 'createTrackbar': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(84): error C3861: 'createTrackbar': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(97): error C3861: 'circle': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(99): error C3861: 'line': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(100): error C3861: 'line': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(102): error C3861: 'line': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(103): error C3861: 'line': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(105): error C3861: 'line': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(106): error C3861: 'line': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(108): error C3861: 'line': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(109): error C3861: 'line': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(111): error C3861: 'putText': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(119): error C2065: 'MORPH_RECT' : undeclared identifier
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(119): error C3861: 'getStructuringElement': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(121): error C2065: 'MORPH_RECT' : undeclared identifier
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(121): error C3861: 'getStructuringElement': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(123): error C3861: 'erode': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(124): error C3861: 'erode': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(127): error C3861: 'dilate': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(128): error C3861: 'dilate': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(138): error C2065: 'vector' : undeclared identifier
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(138): error C2059: syntax error : '>'
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(139): error C2065: 'vector' : undeclared identifier
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(139): error C2275: 'cv::Vec4i' : illegal use of this type as an expression
1> h:\softwares\opencv\build\include\opencv2\core\matx.hpp(357) : see declaration of 'cv::Vec4i'
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(139): error C2065: 'hierarchy' : undeclared identifier
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(141): error C2065: 'contours' : undeclared identifier
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(141): error C2065: 'hierarchy' : undeclared identifier
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(141): error C3861: 'findContours': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(145): error C2065: 'hierarchy' : undeclared identifier
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(145): error C2228: left of '.size' must have class/struct/union
1> type is 'unknown-type'
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(146): error C2065: 'hierarchy' : undeclared identifier
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(146): error C2228: left of '.size' must have class/struct/union
1> type is 'unknown-type'
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(149): error C2065: 'hierarchy' : undeclared identifier
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(151): error C2065: 'contours' : undeclared identifier
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(151): error C3861: 'moments': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(159): warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(160): warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(170): error C3861: 'putText': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(176): error C3861: 'putText': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(196): error C2065: 'VideoCapture' : undeclared identifier
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(196): error C2146: syntax error : missing ';' before identifier 'capture'
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(196): error C2065: 'capture' : undeclared identifier
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(198): error C2065: 'capture' : undeclared identifier
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(198): error C2228: left of '.open' must have class/struct/union
1> type is 'unknown-type'
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(200): error C2065: 'capture' : undeclared identifier
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(200): error C2228: left of '.set' must have class/struct/union
1> type is 'unknown-type'
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(201): error C2065: 'capture' : undeclared identifier
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(201): error C2228: left of '.set' must have class/struct/union
1> type is 'unknown-type'
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(206): error C2065: 'capture' : undeclared identifier
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(206): error C2228: left of '.read' must have class/struct/union
1> type is 'unknown-type'
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(208): error C2065: 'COLOR_BGR2HSV' : undeclared identifier
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(208): error C3861: 'cvtColor': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(223): error C3861: 'imshow': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(224): error C3861: 'imshow': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(225): error C3861: 'imshow': identifier not found
1>c:\users\user\documents\visual studio 2013\projects\objecttrackingtest\objecttrackingtest\objecttrackingtest.cpp(230): error C3861: 'waitKey': identifier not found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
AMPS12// cwchar standard header
#pragma once
#ifndef _CWCHAR_
#define _CWCHAR_
#include <yvals.h>
#ifdef _STD_USING
#undef _STD_USING
#include <wchar.h>
#define _STD_USING
#else /* _STD_USING */
#include <wchar.h>
#endif /* _STD_USING */
typedef mbstate_t _Mbstatet;
#if _GLOBAL_USING && !defined(RC_INVOKED)
_STD_BEGIN
using _CSTD _Mbstatet;
using _CSTD mbstate_t; using _CSTD size_t; using _CSTD tm; using _CSTD wint_t;
using _CSTD btowc; using _CSTD fgetwc; using _CSTD fgetws; using _CSTD fputwc;
using _CSTD fputws; using _CSTD fwide; using _CSTD fwprintf;
using _CSTD fwscanf; using _CSTD getwc; using _CSTD getwchar;
using _CSTD mbrlen; using _CSTD mbrtowc; using _CSTD mbsrtowcs;
using _CSTD mbsinit; using _CSTD putwc; using _CSTD putwchar;using _CSTD swprintf; using _CSTD swscanf; using _CSTD ungetwc;
using _CSTD vfwprintf; using _CSTD vswprintf; using _CSTD vwprintf;
using _CSTD wcrtomb; using _CSTD wprintf; using _CSTD wscanf;
using _CSTD wcsrtombs; using _CSTD wcstol; using _CSTD wcscat;
using _CSTD wcschr; using _CSTD wcscmp; using _CSTD wcscoll;
using _CSTD wcscpy; using _CSTD wcscspn; using _CSTD wcslen;
using _CSTD wcsncat; using _CSTD wcsncmp; using _CSTD wcsncpy;
using _CSTD wcspbrk; using _CSTD wcsrchr; using _CSTD wcsspn;
using _CSTD wcstod; using _CSTD wcstoul; using _CSTD wcsstr;
using _CSTD wcstok; using _CSTD wcsxfrm; using _CSTD wctob;
using _CSTD wmemchr; using _CSTD wmemcmp; using _CSTD wmemcpy;
using _CSTD wmemmove; using _CSTD wmemset; using _CSTD wcsftime;
using _CSTD vfwscanf; using _CSTD vswscanf; using _CSTD vwscanf;
using _CSTD wcstof; using _CSTD wcstold;
using _CSTD wcstoll; using _CSTD wcstoull;
_STD_END
#endif /* _GLOBAL_USING */
#endif /* _CWCHAR_ */
* Copyright (c) 1992-2013 by P.J. Plauger. ALL RIGHTS RESERVED.
* Consult your license regarding permissions and restrictions.
V6.40:0009 */
this is line where it go when i clicked
AMPS12 -
Some problems with the count function
Hi Guys,
I am trying to return following:
2009 GUESTS NIGHTS between 1 and 5 = 80 guests
2009 GIESTS NIGHTS between 5 and 10 = 100 guest
Whe I use the combine with a similar report option (union), I issue the following query:
SELECT saw_0 saw_0, saw_1 saw_1, saw_2 saw_2, saw_3 saw_3 FROM ((SELECT Resort.Resort saw_0, Time."Year" saw_1, "Non Revenue Facts".Nights saw_2, count(Guests."Guest Name") saw_3 FROM GUEST WHERE "Non Revenue Facts".Nights BETWEEN 1 AND 5 GROUP BY saw_1, saw_2, saw_0) UNION (SELECT Resort.Resort saw_0, Time."Year" saw_1, "Non Revenue Facts".Nights saw_2, count(Guests."Guest Name") saw_3 FROM GUEST WHERE "Non Revenue Facts".Nights BETWEEN 1 AND 5)) t1 GROUP BY saw_1, saw_2, saw_0 , saw_3 ORDER BY saw_0
The query return just the results for nights between 1 and 5.
I need two columns showing the count of the guests with nights till 5 and one other column showing the count of the guests with nights from 5 to 10.
Any help would be really appreciated.
Regards
GiulianoSorry I did not get this.
I should still use the union statement and than build the below function in the nights fields?
What I am trying to achieve is simply how many guests do i have with at least 1 night and max 5 nights
and how many guests i have with at least 5 nights and a max of 10 nights.
I should have 2 columns:
1 label Nights between 1 and 5
2 label Nights beween 5 and 10
the count(guests) column should than show how many guests in the first range and how many in the second.
Regards
G. -
Getting error in while using File Events Notification....
Hi all,
I want to monitor a folder using C++, i tried with the sample code given in http://blogs.sun.com/praks/entry/file_events_notification
I'm getting the following error...
"find.c", line 40: incomplete struct/union/enum file_obj: fobj
"find.c", line 49: undefined symbol: FILE_ACCESS
"find.c", line 52: undefined symbol: FILE_MODIFIED
"find.c", line 55: undefined symbol: FILE_ATTRIB
"find.c", line 58: undefined symbol: FILE_DELETE
"find.c", line 61: undefined symbol: FILE_RENAME_TO
"find.c", line 64: undefined symbol: FILE_RENAME_FROM
"find.c", line 67: undefined symbol: UNMOUNTED
"find.c", line 70: undefined symbol: MOUNTEDOVER
"find.c", line 88: undefined symbol: FILE_EXCEPTION
"find.c", line 89: undefined struct/union member: fo_name
"find.c", line 89: warning: improper pointer/integer combination: arg #1
"find.c", line 91: improper member use: fo_name
"find.c", line 91: undefined symbol: errno
"find.c", line 92: improper member use: fo_name
"find.c", line 92: warning: improper pointer/integer combination: arg #1
"find.c", line 102: undefined struct/union member: fo_name
"find.c", line 102: warning: improper pointer/integer combination: arg #2
"find.c", line 106: undefined symbol: FILE_EXCEPTION
"find.c", line 107: improper member use: fo_name
"find.c", line 107: warning: improper pointer/integer combination: arg #1
"find.c", line 115: undefined struct/union member: fo_atime
"find.c", line 115: assignment type mismatch:
int "=" struct timespec {long tv_sec, long tv_nsec}
"find.c", line 116: undefined struct/union member: fo_mtime
"find.c", line 116: assignment type mismatch:
int "=" struct timespec {long tv_sec, long tv_nsec}
"find.c", line 117: undefined struct/union member: fo_ctime
"find.c", line 117: assignment type mismatch:
int "=" struct timespec {long tv_sec, long tv_nsec}
"find.c", line 118: warning: implicit function declaration: port_associate
"find.c", line 118: undefined symbol: PORT_SOURCE_FILE
"find.c", line 125: undefined struct/union member: fo_name
"find.c", line 125: undefined symbol: errno
"find.c", line 126: improper member use: fo_name
"find.c", line 126: warning: improper pointer/integer combination: arg #1
"find.c", line 140: warning: implicit function declaration: port_get
"find.c", line 146: undefined symbol: PORT_SOURCE_FILE
"find.c", line 146: non-constant case expression
"find.c", line 170: warning: implicit function declaration: port_create
"find.c", line 196: undefined struct/union member: fo_name
"find.c", line 196: warning: improper pointer/integer combination: op "="
"find.c", line 205: undefined symbol: FILE_ACCESS
"find.c", line 205: undefined symbol: FILE_MODIFIED
"find.c", line 205: undefined symbol: FILE_ATTRIB
"find.c", line 217: warning: implicit function declaration: close
"find.c", line 222: warning: implicit function declaration: thr_join
can anyone help me in this..
The following the version that i'm using in my Solaris
Machine hardware: sun4u
OS version: 5.10
Processor type: sparc
Hardware: SUNW,SPARC-Enterprise
Please help me in this....rectified
-
Unable to read OCITable datatype in pro*c
Hi All,
We have a requirement in Pro*c where in we have to call a oracle function from a pro*c program.
The oracle function returns a Pl/Sql table which has to be stored in a C host array. For this purpose, I have used OTT (Object Type Compiler) to create the C header file which contains the OCI data type OCITable. The OCITable datatype is equivalent to PL/Sql table. But while precompiling , the following error is occurring:
System default option values taken from: D:\Oracle\precomp\admin\pcscfg.cfg
Error at line 30, column 11 in file D:\Oracle\precomp\public\oratypes.h
# include <stddef.h>
..........1
PCC-S-02015, unable to open include file
Error at line 35, column 11 in file D:\Oracle\precomp\public\oratypes.h
# include <limits.h>
..........1
PCC-S-02015, unable to open include file
Error at line 442, column 11 in file D:\Oracle\precomp\public\oratypes.h
# include <sys/types.h>
..........1
PCC-S-02015, unable to open include file
Error at line 465, column 10 in file D:\Oracle\precomp\public\oci.h
#include <ocidfn.h>
.........1
PCC-S-02015, unable to open include file
Error at line 2651, column 10 in file D:\Oracle\precomp\public\oci.h
#include <oci1.h>
.........1
PCC-S-02015, unable to open include file
Error at line 2655, column 10 in file D:\Oracle\precomp\public\oci.h
#include <oro.h>
.........1
PCC-S-02015, unable to open include file
Error at line 2659, column 10 in file D:\Oracle\precomp\public\oci.h
#include <ori.h>
.........1
PCC-S-02015, unable to open include file
Error at line 2663, column 10 in file D:\Oracle\precomp\public\oci.h
#include <orl.h>
.........1
PCC-S-02015, unable to open include file
Error at line 2667, column 10 in file D:\Oracle\precomp\public\oci.h
#include <ort.h>
.........1
PCC-S-02015, unable to open include file
Error at line 2671, column 10 in file D:\Oracle\precomp\public\oci.h
#include <ociextp.h>
.........1
PCC-S-02015, unable to open include file
Error at line 2674, column 10 in file D:\Oracle\precomp\public\oci.h
#include <ociapr.h>
.........1
PCC-S-02015, unable to open include file
Error at line 2675, column 10 in file D:\Oracle\precomp\public\oci.h
#include <ociap.h>
.........1
PCC-S-02015, unable to open include file
Error at line 2678, column 10 in file D:\Oracle\precomp\public\oci.h
#include <ocixmldb.h>
.........1
PCC-S-02015, unable to open include file
Error at line 2682, column 10 in file D:\Oracle\precomp\public\oci.h
#include <oci8dp.h> /* interface definitions for the direct path api */
.........1
PCC-S-02015, unable to open include file
Error at line 2686, column 10 in file D:\Oracle\precomp\public\oci.h
#include <ociextp.h>
.........1
PCC-S-02015, unable to open include file
Syntax error at line 8, column 9, file demo.h:
Error at line 8, column 9 in file demo.h
typedef OCITable nns_array1;
........1
PCC-S-02201, Encountered the symbol "OCITable" when expecting one of the followi
ng:
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 "OCITable" to continue.
Error at line 0, column 0 in file D:\proc_1.pc
PCC-F-02102, Fatal error while doing C preprocessing
Any pointers reg. would be really helpful.You have to add/append the following FLAG while compiling using PROC
PROC -include $ORACLE_HOME/rdbms/public
Maybe you are looking for
-
When I click on my bookmarks they no longer open in a new tab, what do I do to fix it?
I just uploaded to the newest version of Firefox. Now, when I click on a bookmark the link opens in the same tab - they won't open in a new tab. However, when I click on a link in an existing page that link opens in a new tab. I miss having my bookma
-
How to invoke a report by name instead of ID?
Hello, We have developed several shared reports which are invoked from other applications. In Active Studio we select the Report and use "Copy Shortcut" option in left menu to get a web link such this: http://work/oraclebam/ReportServer/default.aspx?
-
Data type conversion in oracle 9.2.0.8
Team, can we convert oracle 9.2.0.8 LONG RAW and LONG to lob types in oracle 9.2.0.8 Thanks, Aj
-
How do I set up my hp officejet pro 8600 to scan to my computer mac OS 10.10.2?
I just want to scan documents to my computer, but every time I try I get an error message that says, "Scan failed The selected folder is not writable"
-
As of last night, my display on my Powerbook G4 is also not working properly. I unplugged my AC plug so I could take my laptop to another part of the house and the screen went blank. I thought it went to sleep so I toggled the track pad and some of t