MikeHart
Administrator
- Joined
- Jun 19, 2017
- Messages
- 2,815
Thanks, the memory exception error is goneThe full set of files modified parse files, with blktrace and parse updated.
Thanks, the memory exception error is goneThe full set of files modified parse files, with blktrace and parse updated.
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);
And that code is generated from image.cpp found in the native directory in the transcc source code.When I run the file "./rebuild.sh" this message appeared:
Although, it is a warning. Transcc compiled normally.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);
"/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
Linux is being used with the output posted.Are you building with MSVC or MinGW?