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

Compilation error while running ArraysMemoryLayout tests #73

Open
polinaburiak opened this issue Jan 24, 2025 · 0 comments
Open

Compilation error while running ArraysMemoryLayout tests #73

polinaburiak opened this issue Jan 24, 2025 · 0 comments

Comments

@polinaburiak
Copy link

  • IDE: CLion 2024.3.2  Build #CL-243.23654.114

  • Plugin: JetBrains Academy (2024.11-2024.3-558)

  • Task path: MemoryManagement/MemoryLayout/ArraysMemoryLayout

  • YouTrack task with logs and more details: EDC-1176 С++ Basic: Compilation error

  • Issue:

    • the user have posted my implementation candidate to solution, but CMake and NMake are giving a compilation error:

[ Build | MemoryManagement-MemoryLayout-ArraysMemoryLayout-test | Debug ]===="C:\Program Files\JetBrains\CLion 2024.1.4\bin\cmake\win\x64\bin\cmake.exe" --build C:\Users\<...>\CLionProjects\C++Basics\cmake-build-debug --target MemoryManagement-MemoryLayout-ArraysMemoryLayout-test[ 50%] Built target gtest[ 50%] Built target gtest_main[100%] Built target MemoryManagement-MemoryLayout-ArraysMemoryLayout-test-src-part[100%] Building CXX object MemoryManagement/MemoryLayout/ArraysMemoryLayout/CMakeFiles/MemoryManagement-MemoryLayout-ArraysMemoryLayout-test.dir/test/test.cpp.objtest.cpp...C:\Users\<...>\CLionProjects\C++Basics\MemoryManagement\MemoryLayout\ArraysMemoryLayout\test\test.cpp(15): error C2466: cannot allocate an array of constant size 0C:\Users\<...>\CLionProjects\C++Basics\MemoryManagement\MemoryLayout\ArraysMemoryLayout\test\test.cpp(15): error C2133: 'a': unknown sizeNMAKE : fatal error U1077: '"C:\Program Files\JetBrains\CLion 2024.1.4\bin\cmake\win\x64\bin\cmake.exe"' : return code '0x2'Stop.NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\nmake.exe"' : return code '0x2'Stop.NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\nmake.exe"' : return code '0x2'Stop.NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\nmake.exe"' : return code '0x2'Stop.

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