while compiling c++ modules.
i am getting the following 2 errors.
1)
/root/cc/unix-ce/root/subsys/cb/cdbh/include/cdbh_TransferFileHeader.h:111: error: ulong_t does not name a type
/root/cc/unix-ce/root/subsys/cb/cdbh/include/cdbh_TransferFileHeader.h:118: error: ulong_t does not name a type
can some of u explain what is ulong_t.
2)
Warning: Semantic checking prevented by other reported errors
/opt/dce/bin/idl: File /root/cc/unix-ce/root/subsys/cb/cdbm/idl/cdbm_0000.idl, line 36: [out] cdbm_t_cdbOccupancy**o1_occupancy,
Name not found: cdbm_t_cdbOccupancy
/opt/dce/bin/idl: File /root/cc/unix-ce/root/subsys/cb/cdbm/idl/cdbm_0000.idl, line 42: [out] cdbm_t_diskQuota** o1_occupancy,
Name not found: cdbm_t_diskQuota
make: *** [/root/cc/unix-ce/root/subsys/cb/cdbm/obj_0000/Linux//cdbm_0000.h] Error 3
for the second error i checked cdbm_t_cdbOccupancy & cdbm_t_diskQuota are available in the specified path.
can some of u suggest a way to solve these 2 errors.
usually in /usr/include/types.h or /usr/include/sys/types.h you will find this...
typedefunsignedlong ulong_t;
The general type of error you have suggests the compiler is having problems finding header files. Assuming you are using gcc/g++, check the -I attributes on the compile command and make sure the compiler is looking in the right directories. For /usr/include it should look there by default so make sure you have a set of system include header in this directory.
Thanks alot for the reply, i replaced ulong_t with unsigned long now it's working. thank u very much.
if possible just look in to the second compilation error,it seems to be common error i.e Name not found: cdbm_t_cdbOccupancy & Name not found: cdbm_t_diskQuota.
could u please suggest a way if it's the general usual problem.
It's hard to add to what I have already said without seeing the code.
I have never worked with idl files so I don't know if there is anything about that file type or its make target that is causing the problem you see. Assuming they are treated the same as a .cc , I would look at the compile command make generates to make sure the path for the header files where cdbm_t_cdbOccupancy and cdbm_t_diskQuota are defined, is included in that command with a -I preceding it.