Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 13th, 2005, 7:50 PM   #1
Aourhgad
Programmer
 
Join Date: Dec 2004
Posts: 36
Rep Power: 0 Aourhgad is on a distinguished road
Send a message via AIM to Aourhgad Send a message via MSN to Aourhgad
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??
Aourhgad is offline   Reply With Quote
Old Feb 13th, 2005, 8:09 PM   #2
Dr.Backtick`
Newbie
 
Join Date: Dec 2004
Posts: 16
Rep Power: 0 Dr.Backtick` is on a distinguished road
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.
Dr.Backtick` is offline   Reply With Quote
Old Feb 13th, 2005, 10:56 PM   #3
ZenMasterJG
Hobbyist Programmer
 
ZenMasterJG's Avatar
 
Join Date: Nov 2004
Location: Boston, MA
Posts: 148
Rep Power: 4 ZenMasterJG is on a distinguished road
Send a message via AIM to ZenMasterJG
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!
ZenMasterJG is offline   Reply With Quote
Old Feb 15th, 2005, 2:31 PM   #4
Aourhgad
Programmer
 
Join Date: Dec 2004
Posts: 36
Rep Power: 0 Aourhgad is on a distinguished road
Send a message via AIM to Aourhgad Send a message via MSN to Aourhgad
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.
Aourhgad is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:49 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC