Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

Code showing error C++

chaklader
Beginner
802 Views
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 ===|
0 Kudos
3 Replies
SergeyKostrov
Valued Contributor II
802 Views
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

0 Kudos
Vladimir_P_1234567890
802 Views
Hi,
I suggest to start with "Getting Started Guide" on our documentation page
http://threadingbuildingblocks.org/documentation.php
thanks,
Vladimir
0 Kudos
chaklader
Beginner
802 Views
Thanks all. I will go through it nd if I will have any questions then i will ask you :)
0 Kudos
Reply