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

minimingw no longer works with current hxcpp #1

Open
tobil4sk opened this issue Apr 11, 2023 · 0 comments
Open

minimingw no longer works with current hxcpp #1

tobil4sk opened this issue Apr 11, 2023 · 0 comments

Comments

@tobil4sk
Copy link

I'm not sure if this is still intended for use, however, it is still recommended in the Haxe manual.

Firstly, this library only works if HXCPP_M32 is set, and compiling with HXCPP_M64 causes compiler errors, see: HaxeFoundation/hxcpp#1031

When HXCPP_M32 is set, compilation still fails due to missing parts of the Windows API in minimingw:

Error: D:/Dev/Haxe/hxcpp/src/hx/Thread.cpp:628:2: error: 'CONDITION_VARIABLE' does not name a type
  CONDITION_VARIABLE cond;
  ^
D:/Dev/Haxe/hxcpp/src/hx/Thread.cpp: In constructor 'hxCondition::hxCondition()':
D:/Dev/Haxe/hxcpp/src/hx/Thread.cpp:641:31: error: 'cond' was not declared in this scope
  InitializeConditionVariable(&cond);
                               ^
D:/Dev/Haxe/hxcpp/src/hx/Thread.cpp:641:35: error: 'InitializeConditionVariable' was not declared in this scope
  InitializeConditionVariable(&cond);
                                   ^
D:/Dev/Haxe/hxcpp/src/hx/Thread.cpp: In member function 'void hxCondition::Wait()':
D:/Dev/Haxe/hxcpp/src/hx/Thread.cpp:711:30: error: 'cond' was not declared in this scope
    SleepConditionVariableCS(&cond,&cs,INFINITE);
                              ^
D:/Dev/Haxe/hxcpp/src/hx/Thread.cpp:711:47: error: 'SleepConditionVariableCS' was not declared in this scope
    SleepConditionVariableCS(&cond,&cs,INFINITE);
                                               ^
D:/Dev/Haxe/hxcpp/src/hx/Thread.cpp: In member function 'bool hxCondition::TimedWait(double)':
D:/Dev/Haxe/hxcpp/src/hx/Thread.cpp:721:43: error: 'cond' was not declared in this scope
    return (bool)SleepConditionVariableCS(&cond, &cs, (DWORD)((FLOAT)timeout * 1000.0));
                                           ^
D:/Dev/Haxe/hxcpp/src/hx/Thread.cpp:721:86: error: 'SleepConditionVariableCS' was not declared in this scope
    return (bool)SleepConditionVariableCS(&cond, &cs, (DWORD)((FLOAT)timeout * 1000.0));
                                                                                      ^
D:/Dev/Haxe/hxcpp/src/hx/Thread.cpp: In member function 'void hxCondition::Signal()':
D:/Dev/Haxe/hxcpp/src/hx/Thread.cpp:744:27: error: 'cond' was not declared in this scope
    WakeConditionVariable(&cond);
                           ^
D:/Dev/Haxe/hxcpp/src/hx/Thread.cpp:744:31: error: 'WakeConditionVariable' was not declared in this scope
    WakeConditionVariable(&cond);
                               ^
D:/Dev/Haxe/hxcpp/src/hx/Thread.cpp: In member function 'void hxCondition::Broadcast()':
D:/Dev/Haxe/hxcpp/src/hx/Thread.cpp:753:30: error: 'cond' was not declared in this scope
    WakeAllConditionVariable(&cond);
                              ^
D:/Dev/Haxe/hxcpp/src/hx/Thread.cpp:753:34: error: 'WakeAllConditionVariable' was not declared in this scope
    WakeAllConditionVariable(&cond);
                                  ^
Error: Build failed

Newer mingw does not have this issue, so it looks like minimingw is just out of date.

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

1 participant