Compile error when .bas name is same as a directory (linux) - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11) +--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2) +--- Thread: Compile error when .bas name is same as a directory (linux) (/showthread.php?tid=3138) |
Compile error when .bas name is same as a directory (linux) - Dav - 10-18-2024 Can't recall if this is a known thing, but I came across this today trying to compile my 2048.bas game in the qb64pe directory. I had previously made a /2048 directory in that same place of Fellippe's game version. With the 2048 folder there, my original 2048.bas wouldn't compile anymore. I renamed Fell's folder to 2048fell and then my 2048.bas would compile. So to prove it was a name conflict issue, I made a folder named /compile, and tried to compile a file named compile.bas, and it would not compile either until I removed the directory. So, looks like a filename can't be the same as a directory name (Using Linux here). I did the same test using the Windows QB64-PE version (under wine in Linux) and it would compile. So maybe this is just a Linux issue? - Dav RE: Compile error when .bas name is same as a directory (linux) - SpriggsySpriggs - 10-18-2024 I'll bet that the line that does the compiling command doesn't use an extension. RE: Compile error when .bas name is same as a directory (linux) - Dav - 10-18-2024 Hmm, maybe so. I wonder if because since a compiled .bas in Linux has no extension, so 2048 (folder) and 2048 (program) can't exist together? I can't create a 2048 folder if a program named 2048 is already there. - Dav Code: (Select All) g++ -no-pie -std=gnu++17 -fno-strict-aliasing -Wno-conversion-null -DFREEGLUT_STATIC -I./internal/c/libqb/include -I./internal/c/parts/core/freeglut/include -I./internal/c/parts/core/glew/include -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE -DDEPENDENCY_AUDIO_MINIAUDIO internal/c/qbx.cpp -c -o internal/c/qbx.o RE: Compile error when .bas name is same as a directory (linux) - Kernelpanic - 10-18-2024 It works with a C program in WSL; just tried it out. |