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

PLCTool doesn't compile #1

Closed
adriangc24 opened this issue Apr 7, 2022 · 2 comments
Closed

PLCTool doesn't compile #1

adriangc24 opened this issue Apr 7, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@adriangc24
Copy link

adriangc24 commented Apr 7, 2022

Following the tutorial from your website to compile PLCTool i have encountered this error, after executing make inside PLCTool folder downloaded by github.

Makefile:2319: warning: overriding commands for target `moc_MainWindow.cpp'
Makefile:1778: warning: ignoring old commands for target `moc_MainWindow.cpp'
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z  -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -mmacosx-version-min=12 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -Igurux/include -I/usr/local/lib/QtWidgets.framework/Headers -I/usr/local/lib/QtGui.framework/Headers -I/usr/local/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/AGL.framework/Headers -I/usr/local/share/qt/mkspecs/macx-clang -F/usr/local/lib -o Attack.o Attacks/Attack.cpp
In file included from Attacks/Attack.cpp:30:
In file included from ./Attacks/AttackFactory.h:33:
In file included from ./Attacks/Attack.h:33:
In file included from ./PRIME/PrimeAdapter.h:33:
In file included from ./Topology/Adapter.h:36:
In file included from ./Topology/SubNet.h:36:
In file included from ./Topology/Node.h:35:
./Topology/StringParams.h:44:5: error: unknown type name 'ulong'; did you mean 'long'?
    ulong asULong(void) const;
    ^~~~~
    long
1 error generated.
make: *** [Attack.o] Error 1
@antoniovazquezblanco
Copy link
Collaborator

From your error it seems that ulong is not a very portable type. Seems that replacing 'ulong' with 'unsigned long' may fix your issue here.

The code is provided "AS IS" and it has only been tested for the compilers stated in the latest version of the README.md file. If this solves your issue we would really appreciate a pull request with the fixes. Thank you

@antoniovazquezblanco
Copy link
Collaborator

Latest release should have fixed this. Please reopen if the problem persists.

Thanks

@antoniovazquezblanco antoniovazquezblanco self-assigned this Feb 15, 2024
@antoniovazquezblanco antoniovazquezblanco added the bug Something isn't working label Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants