Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 37 by stephen.zhuang: make报错
http://code.google.com/p/onering-desktop/issues/detail?id=37
What steps will reproduce the problem?
clone一份新代码进行编译,make时报错
What is the expected output?
编译成功
What do you see instead?
g++ -c -pipe -g -gdwarf-2 -Wall -W -fPIC -DONERING_LIBRARY -DQT_WEBKIT_LIB
-DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/local/Qt4.7/mkspecs/macx-g++ -I.
-I/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/usr/include/QtCore
-I/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
-I/usr/include/QtNetwork
-I/Library/Frameworks/QtGui.framework/Versions/4/Headers
-I/usr/include/QtGui
-I/Library/Frameworks/QtScript.framework/Versions/4/Headers
-I/usr/include/QtScript
-I/Library/Frameworks/QtWebKit.framework/Versions/4/Headers
-I/usr/include/QtWebKit -I/usr/include -I. -Iinclude -I.
-F/Library/Frameworks -o application.o src/application.cpp
src/application.cpp:30: warning: unused parameter 'event'
src/application.cpp: In member function 'int Application::load(const
char*)':
src/application.cpp:129: error: invalid conversion from 'long int'
to 'void*'
src/application.cpp:129: error: initializing argument 4 of 'OSErr
AEInstallEventHandler(AEEventClass, AEEventID, OSErr (*)(const AEDesc*,
AEDesc*, void*), void*, Boolean)'
make: *** [application.o] Error 1
What version of the product are you using? On what operating system?
Revision: 39148cf127, mac ox x 10.6.5
Please provide any additional information below.
改了一下src/application.cpp line 129,去掉了(long)的强制转换,再编译就成功了
…