Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
Anybody is there to help me regarding this query..


Regards
Ramesh
Posted
Comments
R.ranjan 12-Apr-11 8:57am    
Hi, can anybody help me to get packages in ubuntu for asm/atomic.h file error:No such file or directory. Regds, Ramesh
R.ranjan 13-Apr-11 6:54am    
Hi,
can anybody help me regarding one issue that which version of kernel headers is compatible to solve the error :asm/atomic.h file missing...
i need urgent..

Regds,
Ramesh

1 solution

This is not a query. Who can understand what you want? One-click build? How to create make files? What?

I can give you one advice though. To work with C++ in Ubuntu, I would recommend using C++ IDE called Anjuta, see http://en.wikipedia.org/wiki/Anjuta[^]. You'll find it as a standard Ubuntu distribution.

—SA
 
Share this answer
 
v3
Comments
R.ranjan 11-Apr-11 2:56am    
I understood. But actually when i am compiling c++ project with Ubuntu , i am getting so much of error which i could not understand. I already installed development libraries which is required for integrating.. in below i am giving you some errors as

/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



- Ramesh
markkuk 11-Apr-11 6:28am    
You're missing an include file: asm/atomic.h. All following errors are caused by that one. Install the package that contains the required file.
Sergey Alexandrovich Kryukov 11-Apr-11 3:46am    
Ramesh... this is not serious. Do you need help in fixing errors? OK, make a proper question out of it. You already have the adequate error report, keep it. Make the shortest possible code sample (don't post your whole code, proceed one step at a time) which shows some errors. I see the line number. Post a code sample and comment each like reported in the error list appropriately.

If you isolate problems well in some compact chunks but don't hide essential information, chances are, somebody (including myself) could be able to help you in timely manner.

Good luck.
--SA
R.ranjan 11-Apr-11 7:10am    
Hi SAKryukov, I already included that asm/atomic.h .But still i am getting error at compiling time.. 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:
Albert Holguin 11-Apr-11 10:37am    
check if the file/directory is really there... if its not, then you didn't install the required package (or didn't install correctly)... you can always do a search of your file system for the atomic.h to see if it was installed in a different directory

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