The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
errors compiling gcc 4.2.1 kwa71 UNIX for Dummies Questions & Answers 2 02-17-2008 01:59 PM
Errors while Compiling a PC script. musavir19 High Level Programming 1 12-01-2005 08:02 AM
Adapter Errors and Link Errors mcastill66 UNIX for Advanced & Expert Users 0 08-02-2005 03:11 PM
get error while compiling apache with php module jApHEth UNIX for Dummies Questions & Answers 2 11-28-2001 09:49 PM
Compiling Errors -- Symbol referencing spotanddot High Level Programming 5 07-11-2001 10:18 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-08-2008
Registered User
 

Join Date: Apr 2008
Posts: 19
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Thumbs up errors while compiling c++ module

hello everyone,

here i attempting to compile a c++ module .
I am using the following command
make -d dummyCHARGP.

i am using the gcc compiler .my os is HP-UX 11.11.
here i am getting the following errors.

errors:
=======

/swtemp/usbs/cc/unix-ce/root/subsys/include/main.h:146: error: expected ';' before '*' token
/swtemp/usbs/cc/unix-ce/root/subsys/include/main.h:150: error: 'boolean32' does not name a type
/swtemp/usbs/cc/unix-ce/root/subsys/include/main.h:161: error: 'unsigned32' does not name a type
/swtemp/usbs/cc/unix-ce/root/subsys/include/main.h:167: error: 'pthread_addr_t' does not name a type
/swtemp/usbs/cc/unix-ce/root/subsys/include/main.h:174: error: variable or field 'main_f3_wait_state' declared void
/swtemp/usbs/cc/unix-ce/root/subsys/include/main.h:174: error: 't_main_proc_state' was not declared in this scope
/swtemp/usbs/cc/unix-ce/root/subsys/include/ocdx_export.h:89: error: 'unsigned32' has not been declared
/swtemp/usbs/cc/unix-ce/root/subsys/include/ocdx_export.h:92: error: 'unsigned32' has not been declared
/swtemp/usbs/cc/unix-ce/root/subsys/include/ocdx_export.h:128: error: 'unsigned32' has not been declared
/swtemp/usbs/cc/unix-ce/root/subsys/include/ocdx_export.h:132: error: 'unsigned32' has not been declared
/swtemp/usbs/cc/unix-ce/root/subsys/include/ocdx_export.h:173: error: 'unsigned32' has not been declared
/swtemp/usbs/cc/unix-ce/root/subsys/include/ocdx_export.h:177: error: 'unsigned32' has not been declared
/swtemp/usbs/cc/unix-ce/root/subsys/include/ocdx_export.h:266: error: 'unsigned32' has not been declared
/swtemp/usbs/cc/unix-ce/root/subsys/include/ocdx_export.h:272: error: 'unsigned32' has not been declared
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:36: error: 'rpc_binding_handle_t' does not name a type
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:37: error: 'uuid_t' does not name a type
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:38: error: ISO C++ forbids declaration of 'unsigned_char_t' with no type
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:38: error: expected ';' before '*' token
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:42: error: typedef 'UDCE_CLEANUP_FUNCTION' is initialized (use __typeof__ instead)
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:42: error: 'unsigned32' was not declared in this scope
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:141: error: expected initializer before '*' token
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:170: error: expected ',' or '...' before 'i1_dummy'
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:170: error: ISO C++ forbids declaration of 'unsigned32' with no type
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:239: error: expected ',' or '...' before '*' token
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:240: error: ISO C++ forbids declaration of 'udce_t_rpc_interface' with no type
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:277: error: expected ',' or '...' before 'i1_if_handle'
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:282: error: ISO C++ forbids declaration of 'rpc_if_handle_t' with no type
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:317: error: expected ',' or '...' before 'i1_if_handle'
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:321: error: ISO C++ forbids declaration of 'rpc_if_handle_t' with no type
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:392: error: expected ',' or '...' before 'i1_if_handle'
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:396: error: ISO C++ forbids declaration of 'rpc_if_handle_t' with no type
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:426: error: expected ',' or '...' before 'i1_if_handle'
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:429: error: ISO C++ forbids declaration of 'rpc_if_handle_t' with no type
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:481: error: expected ',' or '...' before 'i1_if_handle'
/swtemp/usbs/cc/unix-ce/root/subsys/include/udcex_export.h:486: error: ISO C++ forbids declaration of 'rpc_if_handle_t' with no type
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h: In function 'int __gthread_mutex_lock(__gthread_mutex_t*)':
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h:549: error: request for member 'field2' in 'pthread_self()', which is of non-class type 'pthread_t'
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h:549: error: 'pthd4_mutex_lock' was not declared in this scope
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h:549: error: request for member 'field2' in 'pthread_self()', which is of non-class type 'pthread_t'
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h: In function 'int __gthread_mutex_trylock(__gthread_mutex_t*)':
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h:558: error: request for member 'field2' in 'pthread_self()', which is of non-class type 'pthread_t'
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h:558: error: 'pthd4_mutex_trylock' was not declared in this scope
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h:558: error: request for member 'field2' in 'pthread_self()', which is of non-class type 'pthread_t'
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h: In function 'int __gthread_mutex_unlock(__gthread_mutex_t*)':
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h:567: error: request for member 'field2' in 'pthread_self()', which is of non-class type 'pthread_t'
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h:567: error: 'pthd4_mutex_unlock' was not declared in this scope
/usr/local/include/c++/4.1.1/hppa2.0w-hp-hpux11.11/bits/gthr-default.h:567: error: request for member 'field2' in 'pthread_self()', which is of non-class type 'pthread_t'
/swtemp/usbs/cc/unix-ce/root/subsys/cb/cdbc/include/cdbc_0001_exp.h: At global scope:
/swtemp/usbs/cc/unix-ce/root/subsys/cb/cdbc/include/cdbc_0001_exp.h:41: error: 'unsigned32' has not been declared
cdbm_dummy.C: In function 'int main(int, char**)':
cdbm_dummy.C:42: error: 'unsigned32' was not declared in this scope
cdbm_dummy.C:42: error: expected `;' before 'o_result'
cdbm_dummy.C:46: error: 'o_result' was not declared in this scope
cdbm_dummy.C:64: error: expected `;' before 'testResult'
cdbm_dummy.C:158: error: 'testResult' was not declared in this scope
*** Error exit code 1




can somebody help me how to move forward for compilation.
if u need some more information regarding these errors i can provide.

any help appreciated.


with regards,
mannam
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-08-2008
Registered User
 

Join Date: Oct 2007
Location: Tunisia
Posts: 11
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Hi mannam,
It looks like you are compiling against a wrong library.
Try to analyse the requirements of your program, you will need also to check includes.
If you could describe more by giving some peace of code...
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 06:31 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102