Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Bing, Sogou

Members: 0
Guests: 5
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » AFKMUD compile error
Forum Rules | Mark all | Recent Posts

AFKMUD compile error
< Newer Topic :: Older Topic > AFKMUD compile error

Pages:<< prev 1 next >>
Post is unread #1 May 9, 2008, 10:34 am
Go to the top of the page
Go to the bottom of the page

John Smith
Fledgling
GroupMembers
Posts20
JoinedMay 8, 2008

Hi,


when I try to build afkmud 2.03, I get the following compile error :

Compiling o/overland.o....
overland.cpp:30:16: gd.h: No such file or directory
overland.cpp:1549: error: `gdImagePtr' was not declared in this scope
overland.cpp:1549: error: expected primary-expression before "int"
overland.cpp:1549: error: expected primary-expression before "short"
overland.cpp:1549: error: expected primary-expression before "short"
overland.cpp:1549: error: expected primary-expression before "short"
overland.cpp:1550: error: initializer expression list treated as compound expression
overland.cpp:1550: error: expected `,' or `;' before '{' token
overland.cpp:1556: error: `gdImagePtr' was not declared in this scope
overland.cpp:1556: error: expected primary-expression before "int"
overland.cpp:1557: error: initializer expression list treated as compound expression
overland.cpp:1557: error: expected `,' or `;' before '{' token
overland.cpp: In function `void load_map_png(char*, short int)':
overland.cpp:1614: error: `gdImagePtr' was not declared in this scope
overland.cpp:1614: error: expected `;' before "im"
overland.cpp:1635: error: `im' was not declared in this scope
overland.cpp:1635: error: `gdImageCreateFromPng' was not declared in this scope
overland.cpp:1637: error: `gdImageSY' was not declared in this scope
overland.cpp:1639: error: `gdImageSX' was not declared in this scope
overland.cpp:1641: error: `gdImageGetPixel' was not declared in this scope
overland.cpp:1642: error: `get_sector_colour' cannot be used as a function
overland.cpp:1647: error: `gdImageDestroy' was not declared in this scope
overland.cpp: In function `void save_map_png(char*, short int)':
overland.cpp:2974: error: `gdImagePtr' was not declared in this scope
overland.cpp:2974: error: expected `;' before "im"
overland.cpp:2980: error: `im' was not declared in this scope
overland.cpp:2980: error: `gdImageCreate' was not declared in this scope
overland.cpp:2983: error: `gdImageColorAllocate' was not declared in this scope
overland.cpp:2993: error: `gdImageLine' was not declared in this scope
overland.cpp:3007: error: `gdImagePng' was not declared in this scope
overland.cpp:3013: error: `gdImageDestroy' was not declared in this scope
make[1]: *** [o/overland.o] Error 1
make: *** [all] Error 2


This can't be good, right ?



Regards,


John Smith.


       
Post is unread #2 May 9, 2008, 10:39 am
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

You appear to be missing gd.
       
Post is unread #3 May 9, 2008, 10:44 am
Go to the top of the page
Go to the bottom of the page

John Smith
Fledgling
GroupMembers
Posts20
JoinedMay 8, 2008

Zeno said:

You appear to be missing gd.


Ok, so where do I go and get 'gd' ?


Regards,


John Smith
       
Post is unread #4 May 9, 2008, 10:54 am
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

From a quick Google, I would assume here: http://www.boutell.com/gd/
       
Post is unread #5 May 9, 2008, 11:01 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

It depends on what system you're compiling under. You haven't told us what operating system you're using. The method for getting the necessary gd-devel library is different depending on whether you're using Cygwin or linux.
       
Post is unread #6 May 9, 2008, 12:23 pm
Go to the top of the page
Go to the bottom of the page

John Smith
Fledgling
GroupMembers
Posts20
JoinedMay 8, 2008

Im running Linux RHEL4.
       
Post is unread #7 May 9, 2008, 3:26 pm   Last edited May 9, 2008, 3:26 pm by Samson
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Then getting what you need should be as simple as "yum install gd-devel"
       
Pages:<< prev 1 next >>