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

Testing Orange C with CMake 2 #1039

Open
ghost opened this issue May 22, 2024 · 0 comments
Open

Testing Orange C with CMake 2 #1039

ghost opened this issue May 22, 2024 · 0 comments

Comments

@ghost
Copy link

ghost commented May 22, 2024

The project I choose to test is https://github.com/aslze/asl.

It's C++11, so it will perfectly fine for Orange C.

CMake configuration completed successfully:

mkdir build
cd build
cmake -DCMAKE_C_COMPILER=occ -DCMAKE_CXX_COMPILER=occ -GNinja ..

But when I actually build it, the build failed immediately with compilation errors:

C:\Work\asl\build>ninja -j1
[6/56] Building CXX object src\CMakeFiles\asls.dir\Http.cpp.o
Warning(138)  C:\Work\asl\src\String.cpp(862):  Possible incorrect assignment
Warning(138)  C:\Work\asl\src\String.cpp(884):  Possible incorrect assignment

FAILED: src/CMakeFiles/asls.dir/Http.cpp.o
C:\Work\OrangeC\bin\occ.exe  -x c++ -! -c C:\Work\asl\src\Http.cpp -DASL_STA
TIC -IC:\Work\asl\src\..\include -O3 -MD -MT src\CMakeFiles\asls.dir\Http.cpp.
o -MF src\CMakeFiles\asls.dir\Http.cpp.o.d -o src\CMakeFiles\asls.dir\Http.cpp.o

Error(258)    C:\Work\asl\src\..\include\asl\Map.h(283):  'asl::Map<asl::Strin
g, asl::String>::operator ()(int)' is not accessible
note:         C:\Work\asl\src\..\include\asl\Map.h(283):  Referenced in instan
tiation of 'asl::Map<asl::String, asl::String>::Enumerator::operator *()'
note:         C:\Work\asl\src\Http.cpp(81):  Referenced in instantiation of 'a
sl::Url::params( const Dic<asl::String>&)'
note:         C:\Work\asl\src\Http.cpp(89):  In template instantiation started
 here
1 Errors
ninja: build stopped: subcommand failed.

Building with GCC 14.1 is fine even though there are many warnings.

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

0 participants