Code showing error C++

Code showing error C++

Dear folks,

I tried to run a c++ project that I made in Code blocks. I got it from my supervisor and my task it to run it properly. I have basic knowledge of C++ programming and now a days, trying to improve. In the time of compiling the the code shows lots of error. Anyone could help me to run it properly ? I heard that I need to install Intel TBB library but dont know how to do that. Errors are -

||=== CFD Code, Debug ===|

mungsmechanik\\CFD Code\\glbcls.h|5|error: /opt/tbb30_104oss/include/tbb/tick_count.h: No such file or directory|

mungsmechanik\\CFD Code\\glbcls.h|19|error: ISO C++ forbids declaration of 'Real' with no type|

mungsmechanik\\CFD Code\\glbcls.h|19|error: typedef 'Real' is initialized (use decltype instead)|

mungsmechanik\\CFD Code\\glbcls.h|19|error: 'Interpolation_FP' was not declared in this scope|

mungsmechanik\\CFD Code\\glbcls.h|36|error: 'Real' does not name a type|

mungsmechanik\\CFD Code\\glbcls.h|76|error: 'Real' does not name a type|

mungsmechanik\\CFD Code\\glbcls.h|77|error: 'Real' does not name a type|

mungsmechanik\\CFD Code\\glbcls.h|78|error: 'Real' does not name a type|

mungsmechanik\\CFD Code\\glbcls.h|102|error: 'Real' does not name a type|

mungsmechanik\\CFD Code\\glbcls.h|103|error: 'Real' does not name a type|

mungsmechanik\\CFD Code\\glbcls.h|104|error: 'Real' does not name a type|

mungsmechanik\\CFD Code\\glbcls.h|112|error: 'Real' does not name a type|

mungsmechanik\\CFD Code\\glbcls.h|115|error: 'Real' does not name a type|

mungsmechanik\\CFD Code\\glbcls.h|151|error: 'Real' does not name a type|

mungsmechanik\\CFD Code\\glbcls.h|152|error: 'Real' does not name a type|

mungsmechanik\\CFD Code\\glbcls.h|154|error: 'Real' does not name a type|

mungsmechanik\\CFD Code\\glbcls.h|155|error: 'Real' does not name a type|
mungsmechanik\\CFD Code\\glbcls.h|156|error: 'Real' does not name a type|
mungsmechanik\\CFD Code\\glbcls.h|157|error: 'Real' does not name a type|
mungsmechanik\\CFD Code\\glbcls.h|158|error: 'Real' does not name a type|
mungsmechanik\\CFD Code\\glbcls.h|161|error: 'Real' does not name a type|
mungsmechanik\\CFD Code\\glbcls.h|165|error: 'Real' does not name a type|
mungsmechanik\\CFD Code\\glbcls.h|166|error: 'Real' does not name a type|
mungsmechanik\\CFD Code\\glbcls.h|171|error: 'Real' does not name a type|
mungsmechanik\\CFD Code\\glbcls.h|172|error: 'Real' does not name a type|
mungsmechanik\\CFD Code\\glbcls.h|173|error: 'Real' does not name a type|
mungsmechanik\\CFD Code\\glbcls.h|174|error: 'Real' does not name a type|
mungsmechanik\\CFD Code\\glbcls.h|175|error: 'Real' does not name a type|
mungsmechanik\\CFD Code\\glbcls.h|176|error: 'Real' does not name a type|
mungsmechanik\\CFD Code\\glbcls.h|191|error: 'Real' has not been declared|
mungsmechanik\\CFD Code\\glbcls.h|194|error: 'Real' has not been declared|
mungsmechanik\\CFD Code\\glbcls.h|195|error: 'Real' does not name a type|
mungsmechanik\\CFD Code\\glbcls.h|216|error: 'Real' has not been declared|
mungsmechanik\\CFD Code\\glbcls.h|221|error: 'Real' has not been declared|
mungsmechanik\\CFD Code\\glbcls.h|222|error: 'Real' has not been declared|
mungsmechanik\\CFD Code\\glbcls.h|222|error: 'Real' has not been declared|
mungsmechanik\\CFD Code\\glbcls.h|222|error: 'Real' has not been declared|
mungsmechanik\\CFD Code\\glbcls.h|231|error: 'Real' has not been declared|
mungsmechanik\\CFD Code\\glbcls.h|244|error: 'Real' has not been declared|
mungsmechanik\\CFD Code\\glbcls.h|263|error: 'Real' does not name a type|
mungsmechanik\\CFD Code\\glbcls.h|264|error: 'Real' does not name a type|
mungsmechanik\\CFD Code\\glbcls.h|265|error: 'Real' does not name a type|
mungsmechanik\\CFD Code\\glbcls.h|269|error: 'Real' does not name a type|
mungsmechanik\\CFD Code\\glbcls.h|270|error: 'Real' does not name a type|
mungsmechanik\\CFD Code\\glbcls.h|276|error: 'tbb' has not been declared|
mungsmechanik\\CFD Code\\glbcls.h|276|error: ISO C++ forbids declaration of 'interval_t' with no type|
mungsmechanik\\CFD Code\\glbcls.h|276|error: expected ';' before 'GPUmm'|
mungsmechanik\\CFD Code\\glbcls.h|277|error: 'tbb' has not been declared|
mungsmechanik\\CFD Code\\glbcls.h|277|error: ISO C++ forbids declaration of 'interval_t' with no type|
mungsmechanik\\CFD Code\\glbcls.h|277|error: expected ';' before 'CPUmm'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Quoting chaklader...
mungsmechanik\CFD Code\glbcls.h|5|error: /opt/tbb30_104oss/include/tbb/tick_count.h: No such file or directory

[SergeyK] It clearly shows that TBB is not installed in '/opt/...' folder or you don't access to it.

...

I've attached a 'Getting Started' pdf-file for TBB.

Best regards,
Sergey

Attachments: 

AttachmentSize
Downloadapplication/pdf Getting_Started.pdf95.67 KB

Hi,I suggest to start with "Getting Started Guide" on our documentation pagehttp://threadingbuildingblocks.org/documentation.phpthanks,Vladimir

Thanks all. I will go through it nd if I will have any questions then i will ask you :)

Leave a Comment

Please sign in to add a comment. Not a member? Join today