Benches Uncategorized

0

Re: URGENT* (for hnoj_ )

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

For some reason, I don't see my reply to your last question in the thread. In case you can't see it either, here's a repeat. - Ray

hnoj_ wrote:
Hello,
I've developed a program that takes in user input,uses that to create a simple html file, and allows the user to edit previous .html files created using this program. The program uses one input file, file_list.txt , to keep track of files.

Now, my problem is that I wrote this code a couple of years ago and just wanted to recycle it for a project I am currently working on. While this program runs fine in xcode, interacting through the console, I need to use this program without xcode--so I need a standalone executable. I really have no idea how to go about doing this.

Currently I have looked in the Debug folder for the universal binary and tried running that, but this as far as it ever makes it...
"
Welcome to John's Web Page Wizard! Ver 1.0
Would you like to create a New Project(N) or work on an Existing one(E)? E
*Bus error*
logout
*[Process completed]*
"

Any help would be greatly appreciated

Hi Hnoj, and welcome to the Dev Forums!

What happens when you select 'N' instead of 'E'?

Your Existing_File() function isn't included with the code you posted, and that would be a good function to look at in this case. Errors that come up when changing to a different execution environment are often related to file paths. For example when you click Build and Go in Xcode, the current working directory might be /Users/Hnoj/Desktop/MyUrgentProject/build/Debug. But if you start that executable from Finder, the cwd might be /Users/Hnoj.

To post code in the forum, please take a look at the alert which is the first topic on the front page of this forum. To see how your post will appear, click the Preview tab just above the Reply editor panel.

This line:

 main() {} 

Produces this:

 main() {} 

0 replies

Sign in or join Beachball Help to reply.