Compile Error in Dev-Cpp

Get help with compiling or installing the game, and discuss announcements of new official releases.

Moderator: Forum Moderators

Post Reply
CIB
Code Contributor
Posts: 625
Joined: November 24th, 2006, 11:26 pm

Compile Error in Dev-Cpp

Post by CIB »

I'm trying to compile Wesnoth with Dev-Cpp and get a compile error here, which I'm unable to fix, since I don't really know much about C/C++...

Referencing to
while (font::line_width(*it, menu_font_size) > width() - 30 - 25)
in file_menu.cpp:
C:\Wesnoth\wesnoth source\src\widgets\file_menu.cpp In member function `void gui::file_menu::display_current_files()':

80 C:\Wesnoth\wesnoth source\src\widgets\file_menu.cpp [Warning] comparison between signed and unsigned integer expressions

80 C:\Wesnoth\wesnoth source\src\widgets\file_menu.cpp cannot find -lSDL_net

80 C:\Wesnoth\wesnoth source\src\widgets\file_menu.cpp ld returned 1 exit status

80 C:\Wesnoth\wesnoth source\src\widgets\file_menu.cpp *** [wesnoth.exe] Error 1
Attachments
file_menu.cpp
The complete file...
(6.73 KiB) Downloaded 224 times
torangan
Retired Developer
Posts: 1365
Joined: March 27th, 2004, 12:25 am
Location: Germany

Post by torangan »

AFAIK nobody managed to get a fully working compile on DevCpp yet. You'll have more luck with a cross compile.
WesCamp-i18n - Translations for User Campaigns:
http://www.wesnoth.org/wiki/WesCamp

Translators for all languages required: contact me. No geek skills required!
qk
Inactive Developer
Posts: 57
Joined: September 4th, 2006, 5:47 pm
Location: Prague, CZ
Contact:

Post by qk »

problem isn`t in this line (it only say same not important warning).
Problem is that you doesn`t link SDL_net lib ;)
Darth Fool
Retired Developer
Posts: 2633
Joined: March 22nd, 2004, 11:22 pm
Location: An Earl's Roadstead

Post by Darth Fool »

I use DevCpp all the time. Problem is that you do not have the SDL_net package. Go to Tools/Package-manager and you will not see it listed there. You will need to update via Tools/check-for-updates.
CIB
Code Contributor
Posts: 625
Joined: November 24th, 2006, 11:26 pm

Post by CIB »

OK, thanks, that worked. But not it says "cannot find -lpython24" and I have no idea what that is...
torangan
Retired Developer
Posts: 1365
Joined: March 27th, 2004, 12:25 am
Location: Germany

Post by torangan »

-l"NAME" adds a library so in this case it's Python 2.4 which is missing.
WesCamp-i18n - Translations for User Campaigns:
http://www.wesnoth.org/wiki/WesCamp

Translators for all languages required: contact me. No geek skills required!
CIB
Code Contributor
Posts: 625
Joined: November 24th, 2006, 11:26 pm

Post by CIB »

Thanks, guys, it works now =)
Post Reply