If you get this error while compiling V8 JavaScript Engine with scons:
//++++++++++++++++++++++++++++++++++++++++++++++++++
cc1plus: warnings being treated as errors
src/handles-inl.h: In static member function 'static void
v8::V8::RemoveMessageListeners(void (*)(v8::Handle<v8::Message>,
v8::Handle<v8::Value>))':
src/handles-inl.h:50: error: dereferencing pointer '<anonymous>' does
break strict-aliasing rules
src/handles-inl.h:50: error: dereferencing pointer '<anonymous>' does
break strict-aliasing rules
src/utils.h:636: note: initialized from here
cc1plus: error: dereferencing pointer 'dest' does break strict-aliasing rules
cc1plus: error: dereferencing pointer 'dest' does break strict-aliasing rules
cc1plus: error: dereferencing pointer 'dest' does break strict-aliasing rules
src/api.cc:3457: note: initialized from here
scons: *** [obj/release/api.o] Error 1
//++++++++++++++++++++++++++++++++++++++++++++++++++
You have to edit the file named "SConstruct" and modify these
variables in this manner:
//++++++++++++++++++++++++++++++++++++++++++++++++++
GCC_EXTRA_CCFLAGS = ['-fno-tree-vrp', '-fno-strict-aliasing']
GCC_DTOA_EXTRA_CCFLAGS = ['-fno-strict-aliasing']
//++++++++++++++++++++++++++++++++++++++++++++++++++
You should delete the "if" structure and leave these variables alone.
Note that maybe you have to use "scons -c" to clean the old compilation files.
lunes, marzo 22, 2010
jueves, enero 28, 2010
C++: How to obtain the name of a class in C++ from a pointer
How to obtain the name of a class in C++ from a pointer:
#include
#include
...
// test any pointer
X * ptr;
...
cout << "requested type is " << typeid(*ptr).name() << endl;
...
martes, octubre 20, 2009
Betfair Promotional Code - Código Promocional
jueves, septiembre 17, 2009
Latex compiling ERROR
Context:
Linux, LaTeX, compiling
Error:
! I can't find file `ptmr7t'.
Solution:
sudo apt-get install texlive-fonts-recommended
Linux, LaTeX, compiling
Error:
! I can't find file `ptmr7t'.
Solution:
sudo apt-get install texlive-fonts-recommended
miércoles, junio 17, 2009
Ubuntu: haz que funcione JDownloader - make your JDownloader work
You have to follow these steps:
1. Be sure these packages are installed in your system:sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk sun-java6-plugin
2. Change your default Java via:sudo update-java-alternatives -s java-6-sun
3. Download JDownloader if you need it:wget -c http://212.117.163.148/jd.sh
4. And run it:chmod +x jd.sh
./jd.sh
jueves, mayo 07, 2009
Install and fix Yum in RHEL 3 or 4, or Fedora Core 4
This links includes the steps you have to follow: link
good luck!!
jueves, noviembre 13, 2008
Ubuntu: Instalar Ruby + Qt4 - How to install Ruby + Qt4
To install the Ruby bindings for the Qt4 GUI library you only have to use this command in a new console:
- libqscintilla2-3
- libqt4-ruby1.8
- libsmokeqt4-2
sudo apt-get install libqt4-rubyIt will install these packages:
- libqscintilla2-3
- libqt4-ruby1.8
- libsmokeqt4-2
lunes, octubre 27, 2008
Ubuntu: Reconfigurar la configuración de vídeo - Reconfigure video configuration
To reconfigure your video options use this command
sudo dpkg-reconfigure xserver-xorgand follow the wizard. It will take several steps configuring mouse, keyboard and video card, but it is so easy if you use the default values.
lunes, octubre 20, 2008
Freeware: Aimp portable for Ubuntu
Did you imagine your Aimp media player in Ubuntu? Stop dreaming and download this link.
Follow these steps:
1. Download the link
2. Extract it in a new folder
3. Make a launcher to the executable
4. Enjoy it!!!
PS: oops!! I remember you need Wine...
Follow these steps:
1. Download the link
2. Extract it in a new folder
3. Make a launcher to the executable
4. Enjoy it!!!
PS: oops!! I remember you need Wine...
miércoles, septiembre 03, 2008
Windows XP Embedded: Problema de memoria durante el FBA (First Boot Agent) - Memory error during FBA
Puede ser que durante la primera carga de tu imagen Windows XPe (el FBA) hayas encontrado el siguiente problema:
Para solucionarlo, iremos al panel "Settings" principal de nuestro proyecto de imagen (el que se encuentra el primero de la lista, justo encima del primer componente seleccionado), seleccionamos "Target Device Settings" (show) y cambiamos la letra de la unidad en las diferentes rutas que tenemos debajo.
El log que nos deja el FBA (en los propios ficheros de la imagen, dentro de la ruta WINDOWS/fba/) seguramente nos ofrezca una sugerencia de la letra de unidad por la que tenemos que cambiar la actual.
"The instruction at "0x..." referenced memory at "0x...". The memory could not be written. Click on OK to terminate the program"
Pues es muy sencillo: algunos de los ficheros que espera encontrar el FBA no se encuentran, lo más probable porque no hayamos puesto bien la letra de la unidad.Para solucionarlo, iremos al panel "Settings" principal de nuestro proyecto de imagen (el que se encuentra el primero de la lista, justo encima del primer componente seleccionado), seleccionamos "Target Device Settings" (show) y cambiamos la letra de la unidad en las diferentes rutas que tenemos debajo.
El log que nos deja el FBA (en los propios ficheros de la imagen, dentro de la ruta WINDOWS/fba/) seguramente nos ofrezca una sugerencia de la letra de unidad por la que tenemos que cambiar la actual.
Suscribirse a:
Entradas (Atom)