mongrol
2007.10.29, 08:53 AM
Hi folks,
I'm attempting to port an Allegro game which is currently available for Win32 and Linux. I'm new to both Mac's and modern C++ programming but think I have a fairly good understanding of what's involved having done some C programming some 10 odd years ago.
The code was built using KDevelop so I've jammed the lot into XCode by creating an Allegro project (after having installed Allegro framework) and adding the source files. I've also upgraded the targets as it attempted to build with Jam by default. I'm aware of some illegal code with loads of functions declared without type and I've attempted to cut these out of the loop just to get it to compile (is there a way to force it to compile without declaration?). However, I'm hitting lots of undefined symbol errors. I believe these may be due to the missing source I've removed but while some of the symbols are variables in the code, others (like _T1) aren't. Can someone verify that I've thinking correctly or am I missing something obvious due to my naivety?
usr/bin/ld: warning prebinding disabled because dependent library: @executable_path/../Frameworks/Allegro.framework/Versions/4.2.2/Allegro is not prebound
/usr/bin/ld: Undefined symbols:
_T1
Error(char const*, ...)
Fatal(char const*, ...)
yyprintname(int)
first_lexval()
init_dirsets()
init_lexelem()
YYSTART()
yydirset(int, int)
_yyannotation
_yycoordinate
_yyerror
_yygrammar
_currMap
_yylval
_yywrap
__mangled_main_address
I'm attempting to port an Allegro game which is currently available for Win32 and Linux. I'm new to both Mac's and modern C++ programming but think I have a fairly good understanding of what's involved having done some C programming some 10 odd years ago.
The code was built using KDevelop so I've jammed the lot into XCode by creating an Allegro project (after having installed Allegro framework) and adding the source files. I've also upgraded the targets as it attempted to build with Jam by default. I'm aware of some illegal code with loads of functions declared without type and I've attempted to cut these out of the loop just to get it to compile (is there a way to force it to compile without declaration?). However, I'm hitting lots of undefined symbol errors. I believe these may be due to the missing source I've removed but while some of the symbols are variables in the code, others (like _T1) aren't. Can someone verify that I've thinking correctly or am I missing something obvious due to my naivety?
usr/bin/ld: warning prebinding disabled because dependent library: @executable_path/../Frameworks/Allegro.framework/Versions/4.2.2/Allegro is not prebound
/usr/bin/ld: Undefined symbols:
_T1
Error(char const*, ...)
Fatal(char const*, ...)
yyprintname(int)
first_lexval()
init_dirsets()
init_lexelem()
YYSTART()
yydirset(int, int)
_yyannotation
_yycoordinate
_yyerror
_yygrammar
_currMap
_yylval
_yywrap
__mangled_main_address