Segmentation fault when loading a mesh
Re: Segmentation fault when loading a mesh
ill try changing the path for sydney.md2 but shldnt it work 'cus sydney.md2 is it the same folder as the source.
Re: Segmentation fault when loading a mesh
mybe the executable is not in the same folder?
Re: Segmentation fault when loading a mesh
it wld help if u tell me the command for building with the console!
Re: Segmentation fault when loading a mesh
The path is relative to the executable, hence, if you don't provide a path, the first place to look for is where the executable is located.
And the console build command is normally make, but you have to create a makefile first for your programs
And the console build command is normally make, but you have to create a makefile first for your programs
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Re: Segmentation fault when loading a mesh
well it wld really help if u told me how to find out where the executable is located when u build with code::blocks
Re: Segmentation fault when loading a mesh
well, it returned -1, so what does that mean?
Re: Segmentation fault when loading a mesh
so i moved the image to where the executable is but it still wont load.
Re: Segmentation fault when loading a mesh
What returned -1?
You have to move the mesh file, not just the image. (so you found where your executable is)
And please, keep all your questions in single posts.
You have to move the mesh file, not just the image. (so you found where your executable is)
And please, keep all your questions in single posts.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Re: Segmentation fault when loading a mesh
the program returned -1 when i ran it.
what do u mean by the mesh file?
it is only a .md2 program and a texture for it.
what do u mean by the mesh file?
it is only a .md2 program and a texture for it.
Re: Segmentation fault when loading a mesh
Aren't you loading a mesh? that is your mesh, if the program exited with -1 it means something went wrong, though i can't tell what. Check the IDE documentation to know more in depth.
And read and study more about C, C++ and computers in general. If you have such errors, you sure are very, very, green in this to handle something like Irrlicht, or any programming library in general.
And read and study more about C, C++ and computers in general. If you have such errors, you sure are very, very, green in this to handle something like Irrlicht, or any programming library in general.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: Segmentation fault when loading a mesh
The main program will return whatever you tell it to return. So check the code where it says 'return -1' to see where it exits
Re: Segmentation fault when loading a mesh
it does not say to return -1 in the code at all.
code::blocks is returning -1
code::blocks is returning -1
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: Segmentation fault when loading a mesh
Most IDEs return the value the app returned.