Closed 1802323 closed 4 years ago
Do you have "site.html" file in directory you are executing your binary in?
Do you have "site.html" file in directory you are executing your binary in?
I have it in the same directory as my c files.
But do you have it in directory you execute binary in? E.g.
ls
-> binary site.html
./binary
Or do you run it from different directory? (without this html file)
But do you have it in directory you execute binary in? E.g.
ls -> binary site.html ./binary
Or do you run it from different directory? (without this html file)
No I have the html file in a separate directory where my project files are not the binary directory. I'm using Xcode here. Also I even tried to put the entire directory path under load()
but it didn't work
Can you list directory where your binary is located? Do you run your binary directly from that location?
After searching online I discovered were the default binary folders for Xcode is: /Users/[my_user]/Library/Developer/Xcode/DerivedData/project_title-[some_random_string]/Build/Products/Debug/project_title
After placing my html files here, the program works.
I'm trying to run a HTML file, the program compiles and runs fine but the page is blank when I visit my localhost address. Please help.