I had make a project and it run on one Raspberry.
The same project, I can not run on an other raspberry: I become this result in netbeaans :
Copying project files to /root/.netbeans/remote/192.168.1.50/pc1-w7-64-Windows-x86_64 at root@192.168.1.50
Building project files list...
Checking directory structure...
Checking previously uploaded files...
Checking links...
Uploading changed files:
Checking exec permissions...
Uploading changed files finished successfully.
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE=/usr/bin/qmake SUBPROJECTS= .build-conf
make[1]: Entering directory '/root/.netbeans/remote/192.168.1.50/pc1-w7-64-Windows-x86_64/C/projet1/Raspberry'
/usr/bin/qmake VPATH=. -o qttmp-Debug.mk nbproject/qt-Debug.pro
mv -f qttmp-Debug.mk nbproject/qt-Debug.mk
"/usr/bin/make" -f nbproject/qt-Debug.mk dist/Debug/GNU-Linux-x86/Raspberry
make[2]: Entering directory '/root/.netbeans/remote/192.168.1.50/pc1-w7-64-Windows-x86_64/C/projet1/Raspberry'
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -Inbproject -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Inbproject -I. -o build/Debug/GNU-Linux-x86/main.o main.cpp
main.cpp: In function ‘void unmap_peripheral(bcm2835_peripheral*)’:
main.cpp:84:19: error: ‘close’ was not declared in this scope
close(p->mem_fd);
^
I think an include file is not right.....
Code: Select all
#include <stdio.h>
#include <fstream>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/stat.h>
#include <IniFile.h>Can you help me ?
Sébastien