Community
DWF
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DWF Toolkit compiling on Ubuntu 10.10

1 REPLY 1
SOLVED
Reply
Message 1 of 2
timofey.tatarinov
1771 Views, 1 Reply

DWF Toolkit compiling on Ubuntu 10.10

Hi, All!

 

I have a problem with creation of DWF Toolkit library files from source code on my machine with Ubuntu 10.10 64bit.

When I do "make" command I receive next message:

 

In file included from Core.cpp:60:
../../dwfcore/config.h:114: warning: "_DWFCORE_X64_SYSTEM" redefined
../../dwfcore/Core.h:58: note: this is the location of the previous definition
Core.cpp: In function ‘int DWFCore::AtomicIncrement(volatile int*)’:
Core.cpp:91: error: ‘atomic_t’ was not declared in this scope
Core.cpp:91: error: expected ‘;’ before ‘tValue’
Core.cpp:92: error: ‘tValue’ was not declared in this scope
Core.cpp:92: error: ‘atomic_set’ was not declared in this scope
Core.cpp:99: error: ‘atomic_read’ was not declared in this scope
Core.cpp: In function ‘int DWFCore::AtomicDecrement(volatile int*)’:
Core.cpp:108: error: ‘atomic_t’ was not declared in this scope
Core.cpp:108: error: expected ‘;’ before ‘tValue’
Core.cpp:109: error: ‘tValue’ was not declared in this scope
Core.cpp:109: error: ‘atomic_set’ was not declared in this scope
Core.cpp:116: error: ‘atomic_read’ was not declared in this scope

In file included from Core.cpp:60:../../dwfcore/config.h:114: warning: "_DWFCORE_X64_SYSTEM" redefined../../dwfcore/Core.h:58: note: this is the location of the previous definitionCore.cpp: In function ‘int DWFCore::AtomicIncrement(volatile int*)’:Core.cpp:91: error: ‘atomic_t’ was not declared in this scopeCore.cpp:91: error: expected ‘;’ before ‘tValue’Core.cpp:92: error: ‘tValue’ was not declared in this scopeCore.cpp:92: error: ‘atomic_set’ was not declared in this scopeCore.cpp:99: error: ‘atomic_read’ was not declared in this scopeCore.cpp: In function ‘int DWFCore::AtomicDecrement(volatile int*)’:Core.cpp:108: error: ‘atomic_t’ was not declared in this scopeCore.cpp:108: error: expected ‘;’ before ‘tValue’Core.cpp:109: error: ‘tValue’ was not declared in this scopeCore.cpp:109: error: ‘atomic_set’ was not declared in this scopeCore.cpp:116: error: ‘atomic_read’ was not declared in this scope

 

 

I tried to reolve atomic.h problem manually. I downloaded linux-headers and copied 'asm' folder with 'atomic.h' to my /usr/include/. But I haven't had a successfull result.

 

If anyone know solution or DWF Toolkit compilation help document?

 

Thanks in advance for reply,

Timofey Tatarinov

1 REPLY 1
Message 2 of 2

I found a solution.

The problem was in the file "atomic.h". I installed "libasound2-dev" and problem was solved.

 

The question is closed

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

”Boost

 

”Tips

 

”Services