Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

64-bit Compilation Fails #12

Open
flibitijibibo opened this issue Jan 6, 2013 · 2 comments
Open

64-bit Compilation Fails #12

flibitijibibo opened this issue Jan 6, 2013 · 2 comments

Comments

@flibitijibibo
Copy link
Contributor

This almost falls into Issue #3, but it's a bit worse than just having a bunch of x86 asm everywhere. There is a lot of pointer-y stuff being thrown about, and on 64-bit this gets ugly fast due to everything being written with only 32-bit in mind.

It's hard to determine if the errors will be genuinely problematic or if it's just bad precision at the compilation stage. Just fix them as you see them, but get worried if the errors hover around areas that directly deal with MadTracker-related data. That will probably mean redesigning the file format to work on any architecture.

@AmEv7Fam
Copy link
Member

Just tried comiling. A lot of fpermissive stuff, yet again.....

Also, at least on Debian/Ubuntu, you CANNOT compile in 32-bit mode on 64-bit. 32-only works as expected.

@AmEv7Fam
Copy link
Member

Here's an example of one:

[ 1%] Building CXX object CMakeFiles/madtracker3.dir/MT3/MTExtensions.cpp.o
/home/ammon/NetBeansProjects/MadTracker3/MT3/MTExtensions.cpp: In member function ‘virtual void MT3Interface::notify(void_, int, int)’:
/home/ammon/NetBeansProjects/MadTracker3/MT3/MTExtensions.cpp:309:38: error: cast from ‘void_’ to ‘int’ loses precision [-fpermissive]
/home/ammon/NetBeansProjects/MadTracker3/MT3/MTExtensions.cpp: In member function ‘virtual bool MT3Interface::editobject(void_, bool)’:
/home/ammon/NetBeansProjects/MadTracker3/MT3/MTExtensions.cpp:385:22: error: cast from ‘void_’ to ‘int’ loses precision [-fpermissive]
/home/ammon/NetBeansProjects/MadTracker3/MT3/MTExtensions.cpp: In function ‘void unloadExtensions()’:
/home/ammon/NetBeansProjects/MadTracker3/MT3/MTExtensions.cpp:777:10: warning: deleting object of polymorphic class type ‘MT3Interface’ which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
make[2]: *** [CMakeFiles/madtracker3.dir/MT3/MTExtensions.cpp.o] Error 1
make[1]: *** [CMakeFiles/madtracker3.dir/all] Error 2
make: *** [all] Error 2

Note: make madtracker3 works PERFECTLY on 32-bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants