Fixed CerberusX reporting incorrectly number of line.

zuibaf

Member
Joined
Sep 29, 2017
Messages
56
Unfortunately, the procedures I did here did not work. Although, I did everything correctly.
What I did then, is check if there was any new update on the github, and I found it, downloaded the version V2020-05-01 and compiled and WORKED CORRECTLY. This time, CerberusX is reporting everything correctly.
 

zuibaf

Member
Joined
Sep 29, 2017
Messages
56
When I run the file "./rebuild.sh" this message appeared:
C++:
main.cpp: In function ‘std::string get_file_contents(const char*)’:
main.cpp:14495:60: warning: control reaches end of non-void function [-Wreturn-type]
14495 |  std::ifstream in(filename, std::ios::in | std::ios::binary);
Although, it is a warning. Transcc compiled normally.
 

dawlane

Well-known member
CX Code Contributor
Joined
Jun 21, 2017
Messages
852
When I run the file "./rebuild.sh" this message appeared:
C++:
main.cpp: In function ‘std::string get_file_contents(const char*)’:
main.cpp:14495:60: warning: control reaches end of non-void function [-Wreturn-type]
14495 | std::ifstream in(filename, std::ios::in | std::ios::binary);
Although, it is a warning. Transcc compiled normally.
And that code is generated from image.cpp found in the native directory in the transcc source code.
This I find a bit strange as I'm not seeing any warnings in Linux Mint.
 

zuibaf

Member
Joined
Sep 29, 2017
Messages
56
After that, I downloaded this updated transcc, I'm having another problem, the code for the Desktop target, it only works in Debug mode, in Release mode, an error occurs.

I will open a new thread.

"/home/zuibaf/Apps/Cerberus/bin/transcc_linux" -target=Desktop_Game -config=Release -run "/home/zuibaf/Apps/Cerberus/examples/mojo/difference/champagne/champagne.cxs" TRANS cerberus compiler V2020-05-01 Parsing... Semanting... Translating... Building... g++ -O3 -DNDEBUG -Wno-int-to-pointer-cast -Wno-free-nonheap-object -Wno-unused-result -I../glfw3/include -I../openal/include -I../stb -I../tinyfiledialogs -I../glfw3/deps -I../glfw3/deps/vulkan -D_GLFW_HAS_GLXGETPROCADDRESS -pthread -c -o build/Release/main.o ../main.cpp g++ -s -no-pie -o Release/CerberusGame build/Release/context.o build/Release/init.o build/Release/input.o build/Release/monitor.o build/Release/window.o build/Release/glx_context.o build/Release/x11_init.o build/Release/x11_monitor.o build/Release/x11_window.o build/Release/posix_time.o build/Release/posix_thread.o build/Release/linux_joystick.o build/Release/vulkan.o build/Release/egl_context.o build/Release/osmesa_context.o build/Release/xkb_unicode.o build/Release/stb_vorbis.o build/Release/stb_image.o build/Release/tinyfiledialogs.o build/Release/main.o -lGL -lX11 -lXxf86vm -lXi -lXrandr -lXinerama -lXcursor -lopenal -lpthread -ldl Cerberus Runtime Error : Memory access violation (null) STOPPED
 
Top Bottom