PDA

View Full Version : can't compile mute file sharing program



c0ldshadow
9th July 2005, 12:11 PM
hey, im trying to compile the mute file sharing program.. can someone please advise what i should try next based on the following output i get when trying to compile? so far i have figured out to install freeglut-devel on my own, as well as finding some other stuff... but it just seems to appear now the source code simply has errors in it or something which is making me pull my hair out.. i wish compiling a program could just be easy.. it seems like the chance of getting such a huge program like this to compile first try is close to zero lol...

anyways, any help greatly appreciated, peace,--c0ld



[c0ldshadow@localhost MUTE_fileSharing-0.4.1_UnixSource]$ ./runToBuild
select platform:
1 -- GNU/Linux X86
2 -- GNU/Linux PPC
3 -- FreeBSD X86
4 -- MacOSX
5 -- Solaris
6 -- Win32 using MinGW
q -- quit

> 1


Enter full path to wxWindows wx-config script.
Example: /usr/bin/wx-config
To us the default setting, or if you do not plan to build the
wxWindows-based GUI, leave this blank.

>


select build:
1 -- wxWindows graphical UI
2 -- Console-only text UI
q -- quit

> 1
g++ -Wall -g -DLINUX -c -I../.. -o algebra.o algebra.cpp
algebra.cpp: In member function ‘virtual const T& CryptoPP::AbstractEuclideanDomain<T>::Gcd(const T&, const T&) const’:
algebra.cpp:57: error: there are no arguments to ‘Zero’ that depend on a template parameter, so a declaration of ‘Zero’ must be available
algebra.cpp:57: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
algebra.cpp: At global scope:
algebra.cpp:66: error: expected initializer before ‘&’ token
make: *** [algebra.o] Error 1
g++ -Wall -g -DLINUX -c -I../../.. -o ChannelReceivingThread.o ChannelReceivingThread.cpp
../../../minorGems/io/Serializable.h:38: warning: ‘class Serializable’ has virtual functions but non-virtual destructor
../../../minorGems/util/SimpleVector.h:254: error: explicit specialization of ‘char* SimpleVector<char>::getElementString()’ must be introduced by ‘template <>’../../../minorGems/util/SimpleVector.h:254: error: template-id ‘getElementString<>’ for ‘char* SimpleVector<char>::getElementString()’ does not match any template declaration
../../../minorGems/util/SimpleVector.h:254: error: invalid function declaration
../../../minorGems/util/random/RandomSource.h:31: warning: ‘class RandomSource’ has virtual functions but non-virtual destructor
make: *** [ChannelReceivingThread.o] Error 1
g++ -Wall -g -DLINUX -c -I../../.. -o fileShare.o fileShare.cpp
../../../minorGems/util/SimpleVector.h:254: error: explicit specialization of ‘char* SimpleVector<char>::getElementString()’ must be introduced by ‘template <>’../../../minorGems/util/SimpleVector.h:254: error: template-id ‘getElementString<>’ for ‘char* SimpleVector<char>::getElementString()’ does not match any template declaration
../../../minorGems/util/SimpleVector.h:254: error: invalid function declaration
../../../minorGems/util/random/RandomSource.h:31: warning: ‘class RandomSource’ has virtual functions but non-virtual destructor
../../../minorGems/util/random/StdRandomSource.h:35: warning: ‘class StdRandomSource’ has virtual functions but non-virtual destructor
make: *** [fileShare.o] Error 1
g++ -g -c -I../../../../.. -I/usr/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -o GuiApp.o GuiApp.cpp
../../../../../minorGems/util/SimpleVector.h:254: error: explicit specialization of ‘char* SimpleVector<char>::getElementString()’ must be introduced by ‘template <>’
../../../../../minorGems/util/SimpleVector.h:254: error: template-id ‘getElementString<>’ for ‘char* SimpleVector<char>::getElementString()’ does not match any template declaration
../../../../../minorGems/util/SimpleVector.h:254: error: invalid function declaration
/usr/include/wx/event.h:1949: warning: inline function ‘wxEventTableEntry::wxEventTableEntry(const wxEventTableEntry&)’ used but never defined
make: *** [GuiApp.o] Error 1
cp: cannot stat `../fileSharingMUTE': No such file or directory
cp: cannot stat `win32/fileSharingMUTE.exe': No such file or directory
cp: cannot stat `win32/*.dll': No such file or directory
adding: MUTE/ (stored 0%)
adding: MUTE/files/ (stored 0%)
adding: MUTE/languages/ (stored 0%)
adding: MUTE/languages/English.txt (deflated 63%)
adding: MUTE/languages/TranslationHelper.txt (stored 0%)
adding: MUTE/settings/ (stored 0%)
adding: MUTE/settings/printSearchSyncTrace.ini (stored 0%)
adding: MUTE/settings/mime.ini (deflated 69%)
adding: MUTE/settings/downloadTimeoutRecentChunkWeight.ini (stored 0%)
adding: MUTE/settings/logConnections.ini (stored 0%)
adding: MUTE/settings/logRoutingHistory.ini (stored 0%)
adding: MUTE/settings/seedHosts.ini (stored 0%)
adding: MUTE/settings/downloadTimeoutCurrentTimeoutWeight.ini (stored 0%)
adding: MUTE/settings/utilityAlpha.ini (stored 0%)
adding: MUTE/settings/logLevel.ini (stored 0%)
adding: MUTE/settings/outboundMessageLimit.ini (stored 0%)
adding: MUTE/settings/README.txt (deflated 68%)
adding: MUTE/settings/downloadRetryFreshRouteProbability.ini (stored 0%)
adding: MUTE/settings/sharingPath.ini (stored 0%)
adding: MUTE/settings/sendQueueSizePerConnection.ini (stored 0%)
adding: MUTE/settings/port.ini (stored 0%)
adding: MUTE/settings/maxConnectionCount.ini (stored 0%)
adding: MUTE/settings/downloadChunkRetries.ini (stored 0%)
adding: MUTE/settings/inboundMessageLimit.ini (stored 0%)
adding: MUTE/settings/logDownloadTimeoutChanges.ini (stored 0%)
adding: MUTE/settings/logMessageHistory.ini (stored 0%)
adding: MUTE/settings/utilityBeta.ini (stored 0%)
adding: MUTE/settings/targetConnectionCount.ini (stored 0%)
adding: MUTE/settings/utilityGamma.ini (stored 0%)
adding: MUTE/settings/maxDroppedMessageFraction.ini (stored 0%)
adding: MUTE/settings/showNiceQuit.ini (stored 0%)
adding: MUTE/settings/language.ini (stored 0%)
adding: MUTE/settings/webHostCaches.ini (deflated 47%)
adding: MUTE/settings/downloadFileInfoRetries.ini (stored 0%)
adding: MUTE/settings/broadcastProbability.ini (stored 0%)
adding: MUTE/settings/logRolloverInSeconds.ini (stored 0%)
adding: MUTE/settings/maxMessageUtility.ini (stored 0%)
adding: MUTE/settings/continueForwardProbability.ini (stored 0%)
adding: MUTE/settings/useMajorityRouting.ini (stored 0%)
adding: MUTE/settings/downloadTimeoutMilliseconds.ini (stored 0%)
adding: MUTE/settings/maxSubfolderDepth.ini (stored 0%)
adding: MUTE/settings/logConnectionContents.ini (stored 0%)
adding: MUTE/settings/webHostCachePostIntervalSeconds.ini (stored 0%)
adding: MUTE/settings/muteVersion.ini (stored 0%)
[c0ldshadow@localhost MUTE_fileSharing-0.4.1_UnixSource]$

Jman
10th July 2005, 05:12 AM
Are you using FC4? That uses gcc4 which has some issues with certain code. There's a compat gcc package which contains the older version 3.