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

Problems compiling C64Analyser on MacOS Monterey #5

Open
robcfg opened this issue Mar 27, 2023 · 1 comment
Open

Problems compiling C64Analyser on MacOS Monterey #5

robcfg opened this issue Mar 27, 2023 · 1 comment

Comments

@robcfg
Copy link

robcfg commented Mar 27, 2023

Hi,

As I commented out on the CPCWiki, I had some problems compiling C64analiser on my Monterey MacBook Pro, and here's the list of issues I've found:

  • Use of sprintf_s
    Source/C64/C64Chips.cpp:362:9: error: use of undeclared identifier 'sprintf_s'
    Source/C64/C64Chips.cpp:370:13: error: use of undeclared identifier 'sprintf_s'
    Source/C64/C64Chips.cpp:378:13: error: use of undeclared identifier 'sprintf_s'
    Source/C64/C64Chips.cpp:382:13: error: use of undeclared identifier 'sprintf_s'
    Source/C64/C64Chips.cpp:391:13: error: use of undeclared identifier 'sprintf_s'
    Source/C64/C64Chips.cpp:575:5: error: use of undeclared identifier 'sprintf_s'
    Source/C64/C64Chips.cpp:582:5: error: use of undeclared identifier 'sprintf_s'
    Source/C64/IOAnalysis/IORegisterAnalysis.cpp:23:3: error: use of undeclared identifier 'sprintf_s'
    Source/C64/IOAnalysis/VICAnalysis.cpp:175:4: error: use of undeclared identifier 'sprintf_s'

  • Use of min/max instead of fmin/fmax
    Source/C64/C64Chips.cpp:620:29: error: use of undeclared identifier 'min'; did you mean 'fmin'?
    Source/C64/C64Chips.cpp:625:27: error: use of undeclared identifier 'max'; did you mean 'fmax'?

  • Unknown size_t (include <stddef.h> to solve)
    Source/C64/C64Display.h:13:2: error: unknown type name 'size_t'
    Source/C64/C64Display.h:32:2: error: unknown type name 'size_t'

  • Linker errors
    Add find_library(AUDIOTOOLBOX_LIBRARY AudioToolbox) to darwin section of CMakeLists.txt
    Add ${AUDIOTOOLBOX_LIBRARY} to darwin's target_link_libraries section of CMakeLists.txt

@Colourclash
Copy link
Collaborator

Hi,
The C64 version hasn't had the same amount of attention as the Spectrum version and hence doesn't currently compile on Mac/Linux. It's not a lot of work to get it compiling on Mac/Linux. It just hasn't been done yet. :)
Cheers

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

No branches or pull requests

2 participants