| www.retrosoftware.co.uk http://www.retrosoftware.co.uk/forum/ |
|
| Doesn't compile with g++/Linux http://www.retrosoftware.co.uk/forum/viewtopic.php?f=17&t=311 |
Page 1 of 1 |
| Author: | MurrayCakaMuzer [ Tue Jul 28, 2009 2:05 pm ] |
| Post subject: | Doesn't compile with g++/Linux |
You forgot to include the C string libs in most of the files. Just add the correct includes as follows: #include <cstring> to assemble.cpp, commands.cpp, discimage.cpp, expression.cpp If that causes problems, try replacing cstring with string.h main.cpp line 175: Add brackets around: pDiscInputFile != NULL && pDiscOutputFile == NULL Or remove -Werror from the Makefile. Finally, modify the makefile so that if the platform is windows, make the output beebasm.exe, else make it beebasm (Linux users don't take kindly to executables with exe extensions :p) After that, the windows version should work fine on Windows, Linux and Mac. Thanks! |
|
| Author: | RichTW [ Wed Jul 29, 2009 12:16 am ] |
| Post subject: | Re: Doesn't compile with g++/Linux |
Thanks for the advice; I'll correct these in the next release. I compile BeebAsm under GCC 3.4.2 (MinGW for Windows) with -pedantic, so I'm surprised you're seeing errors. I guess more recent versions of GCC have become even more pedantic! Good point on including <cstring> - I have no idea where this include is coming from in my compiler environment.... |
|
| Page 1 of 1 | All times are UTC [ DST ] |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|