| View previous topic :: View next topic |
| Author |
Message |
master-of-desaster
Joined: 19 Dec 2007 Posts: 2
|
Posted: Wed Dec 19, 2007 2:12 pm Post subject: error after make |
|
|
hello,
I get error after running make under OSX10.5. First I used ./configure --prefix=/Users/bob/nmm-1.0.0-installed/ --disable-all --disable-nasm --enable-macosx as mentioned in the manual for my intel Mac. After running make I get the following error:
CPUInfo.cpp: In member function 'void NMM::CPUInfo::start()':
CPUInfo.cpp:134: error: 'uint' was not declared in this scope
CPUInfo.cpp:134: error: expected `;' before 'i'
CPUInfo.cpp:134: error: 'i' was not declared in this scope
CPUInfo.cpp: In member function 'const unsigned int NMM::CPUInfo::getTotalFreeCPU()':
CPUInfo.cpp:215: error: 'uint' was not declared in this scope
CPUInfo.cpp:215: error: expected `;' before 'i'
CPUInfo.cpp:215: error: 'i' was not declared in this scope
CPUInfo.cpp:216: error: no matching function for call to 'NMM::CPUInfo::getFreeCPU(<type error>)'
CPUInfo.cpp:204: note: candidates are: const unsigned int NMM::CPUInfo::getFreeCPU(unsigned int)
make[4]: *** [CPUInfo.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Any ideas why?
Thx |
|
| Back to top |
|
 |
repplix
Joined: 15 Aug 2007 Posts: 26
|
Posted: Thu Dec 20, 2007 2:00 pm Post subject: |
|
|
Hi,
at the moment, we don't have a Mac with OSX10.5 installed and are not able to reproduce the problem.
However, I can try to give you some hints how to compile NMM under OSX10.5.
As far as I know you have to include the file <sys/types.h> to use the data type uint
So just open the file CPUInfo_Linux.cpp and add the statement
# include <sys/types.h>
before line #include "nmm/nmm_prefix.hpp"
It might be possible that the same error occurs on more files. In this case you have to add # include <sys/types.h> in each of these files.
Best regards
Michael Repplinger |
|
| Back to top |
|
 |
master-of-desaster
Joined: 19 Dec 2007 Posts: 2
|
Posted: Thu Dec 20, 2007 4:20 pm Post subject: thx |
|
|
Hello,
yes, that was the reason. I had to add the library into the files CPUInfo.hpp and into Parameter.hpp. Afterwards I could compile the files successfully.
Thanks a lot. |
|
| Back to top |
|
 |
|