c++ compilation errors

Hello every one,

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.

it's very urgent.

kind regards,
Srinu.M
I don't use linux and I'm still new to all of this so I can't help much. But...

If you think it's relevant, you can post your code or part of it with [code][/code]. It'll look nice and neat like this.

1
2
3
4
5
6
7
8
#include <iostream>
using namespace std;

int main()
{
      cout << "Hello World" << endl;
      return 0;
}


Sorry if you realize this already, but I like to contribute whatever I can =)

Also, if you don't get an answer tonight I'm sure you will by tomorrow. Every morning I come on here and theres plenty of new posts from people.
Last edited on
usually in /usr/include/types.h or /usr/include/sys/types.h you will find this...

 
typedef unsigned long   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.

Other than that I'm not sure what to suggest.
Hello bnbertha,

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.

kind regards,
mannam srinivas
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.
Topic archived. No new replies allowed.