It is currently Mon Oct 20, 2014 5:32 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Jul 28, 2009 2:05 pm 
Offline
 Profile

Joined: Sat Jul 25, 2009 11:14 pm
Posts: 65
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!


Top
 
PostPosted: Wed Jul 29, 2009 12:16 am 
Online
User avatar
 Profile

Joined: Mon Jan 07, 2008 6:46 pm
Posts: 380
Location: Málaga, Spain
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....


Top
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: