![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
|
Linux+Fstream=Headache
The windows version of these 2 programs work perfectly fine.
For some reason, my 2 programs, the map making program and my game program do not work in linux. Prior to adding Fstream functions to reloading saved maps into the map making program, it worked in linux. After adding the new fstream stuff, it stopped working. For a while i have been trying to figure out why hte game engine was not working in linux and me and george tried many things to pinpoint hte problem with little sucsess. It had something to do with the file not geting loaded up again. Then after compiling hte newer map engine source in linux it also did not work once it came to dealing with these txt files. I can not figure out why linux does not like fstream. In the case of hte game engine, the first map is loaded up but anything else is not. Anyone have any idea why fstream isn't liking my linux environment and george's? Is there another way i can do this without fstream that would?? |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Dec 2004
Posts: 16
Rep Power: 0
![]() |
George here,
By the Way I'm using Gentoo Linux 2004.3 with Kernel 2.6 with GCCv3.3.4. Steve has Mandrake Linux 10.0 installed with GCCv3.2.3. I was wondering with Steve if there is a Fstream equivilant in Linux. I have looked at other headers and there are so many I dont know what to choose from. |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
|
If your using flat text files to store your maps, you might have to take a look at how windows and linux handle text files. Windows ends its lines CRLF (carriage return, line feed) whereas linux uses only a line feed. if your moving files between the two OSes, you could be screwing up your fields with the CR. If thats not the problem, we'll probably need to see some errors and source code to figure it out.
Good luck! |
|
|
|
|
|
#4 |
|
Programmer
|
You were correct
Thank you. It looks like I might need to recreate all the maps by hand. <sigh> well at least I know my linux version works.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|