Click here to Skip to main content
15,880,972 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,
Anybody help me regarding some error issue at compiling in Ubuntu. here in below i am giving that error details. pls check and let me know any suggestion, i will really grateful to you.

SQL
/home/jars/source/Alpha/Lib/common/xppThreads/../xppthreads_posix/xppthreads.h:35:24: error: asm/atomic.h: No such file or directory
In file included from /home/jars/source/Alpha/Lib/common/xppThreads/xppthreads.h:12,
                 from FixedBuffer.h:17,
                 from FixedBuffer.cpp:16:
/home/jars/source/Alpha/Lib/common/xppThreads/../xppthreads_posix/xppthreads.h: In function ‘uint32_t atomicInc(uint32_t*)’:
/home/jars/source/Alpha/Lib/common/xppThreads/../xppthreads_posix/xppthreads.h:1111: error: ‘atomic_inc_return’ was not declared in this scope
/home/jars/source/Alpha/Lib/common/xppThreads/../xppthreads_posix/xppthreads.h: In function ‘uint32_t atomicDec(uint32_t*)’:
/home/jars/source/Alpha/Lib/common/xppThreads/../xppthreads_posix/xppthreads.h:1117: error: ‘atomic_dec_return’ was not declared in this scope
make[1]: *** [FixedBuffer.o] Error 1
make[1]: Leaving directory `/home/jars/Documents/trunk_linux/iprs/Alpha/Lib/common'
make: *** [common_old] Error 2



Regards,
Ramesh
Posted
Comments
R.ranjan 21-Apr-11 2:47am    
yes correct. I am using thread library in my project. for this i need to change or put some code regarding that error issue as "error:asm/atomic.h :No such file or directory"
R.ranjan 21-Apr-11 3:20am    
or can i need to put anything at .mak file..

1 solution

I guess you are using thread library in your program.
In that case you have use
cc program.cpp -lpthread -o modulename
 
Share this answer
 
Comments
R.ranjan 18-Apr-11 2:34am    
I appreciate your reply. But i think this error is coming from due to not link by asm/atomic.h header file.. I already located that header file , but why at project compile time it shows that "No such file or directory" so can you pls help me regarding that.....

Regards,
Ramesh
Debojyoti Majumder 18-Apr-11 4:06am    
are you using C++ 0x standards??
R.ranjan 18-Apr-11 4:42am    
Actually I am using vc++ 6.0 version project to compile in ubuntu...At compile time i am getting that much of error..
Debojyoti Majumder 19-Apr-11 2:00am    
Do you any .mak file in your VC++ project?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900