![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am unable to compile my Pro*C++ program when i declare any host variables/structures in header files. It seems that Pro*C++ only accepts declaration placed inside the block EXEC SQL BEGIN DECLARE SECTION; EXEC SQL END DECLARE SECTION; But EXEC SQL statement are not allowed inside header files. Therefore i am forced to include host structure / variable definitions in the main program. But i want to access these structure across different programs. I am forced to include these definitions in each program as i cant include them inside header file. Pro*C allows you to declare host structure / variables anywhere (header files / program). But i think Pro*C++ has above mentioned restriction. Is there any way out??? |
#3
| |||
| |||
|
|
I am unable to compile my Pro*C++ program when i declare any host variables/structures in header files. It seems that Pro*C++ only accepts declaration placed inside the block EXEC SQL BEGIN DECLARE SECTION; EXEC SQL END DECLARE SECTION; But EXEC SQL statement are not allowed inside header files. Therefore i am forced to include host structure / variable definitions in the main program. But i want to access these structure across different programs. I am forced to include these definitions in each program as i cant include them inside header file. Pro*C allows you to declare host structure / variables anywhere (header files / program). But i think Pro*C++ has above mentioned restriction. Is there any way out??? |
#4
| |||
| |||
|
|
I am unable to compile my Pro*C++ program when i declare any host variables/structures in header files. It seems that Pro*C++ only accepts declaration placed inside the block EXEC SQL BEGIN DECLARE SECTION; EXEC SQL END DECLARE SECTION; But EXEC SQL statement are not allowed inside header files. Therefore i am forced to include host structure / variable definitions in the main program. But i want to access these structure across different programs. I am forced to include these definitions in each program as i cant include them inside header file. Pro*C allows you to declare host structure / variables anywhere (header files / program). But i think Pro*C++ has above mentioned restriction. Is there any way out??? |
#5
| |||
| |||
|
|
I am unable to compile my Pro*C++ program when i declare any host variables/structures in header files. It seems that Pro*C++ only accepts declaration placed inside the block EXEC SQL BEGIN DECLARE SECTION; EXEC SQL END DECLARE SECTION; But EXEC SQL statement are not allowed inside header files. Therefore i am forced to include host structure / variable definitions in the main program. But i want to access these structure across different programs. I am forced to include these definitions in each program as i cant include them inside header file. Pro*C allows you to declare host structure / variables anywhere (header files / program). But i think Pro*C++ has above mentioned restriction. Is there any way out??? |
![]() |
| Thread Tools | |
| Display Modes | |
| |