Hey,
I just converted from using Windows & Linux to using Mac, so I am pretty new to the Mac environment. However, that doesn't appear to be the problem here.
I am currently working on a C application for university. The application itself includes some basic C, a bunch of elements stored in a struct and so on. Nothing that fancy. I've been working on my Linux Laptop to compile and debug this application up until today, where I finally got my MacBook Pro.
I've installed GCC on the Mac from the Apple Developers page (Command Line Tools OSX Mavericks) - the application seems to compile just fine (I am using gcc -Wall -o name name.c)
On my Linux computer, the program runs fine after compiling, no warnings, no issues whatsoever. However, on this computer, when I run it, it just does nothing ... I am running the application with ./name while being in the directory of the file. Normally the program should give a prompt where the user can enter some basic commands. This output doesn't show up at all. In fact, when I edit my main() function and insert a printf right at the beginning, I am not even getting to see that!? I am pretty confused, I've searched through google for the last 2 hours and found basically nothing about the problem.
When I start the program by typing ./name it just does nothing and lets me input stuff until I press Ctrl-C ...
Does anyone know what could cause this problem? Other basic applications with a few printf() and some calculations work just fine, just this particular one doesn't seem to work while giving no error at all.(I can't put the code of the program online because it is for an university assignment)
Thanks in advance
I just converted from using Windows & Linux to using Mac, so I am pretty new to the Mac environment. However, that doesn't appear to be the problem here.
I am currently working on a C application for university. The application itself includes some basic C, a bunch of elements stored in a struct and so on. Nothing that fancy. I've been working on my Linux Laptop to compile and debug this application up until today, where I finally got my MacBook Pro.
I've installed GCC on the Mac from the Apple Developers page (Command Line Tools OSX Mavericks) - the application seems to compile just fine (I am using gcc -Wall -o name name.c)
On my Linux computer, the program runs fine after compiling, no warnings, no issues whatsoever. However, on this computer, when I run it, it just does nothing ... I am running the application with ./name while being in the directory of the file. Normally the program should give a prompt where the user can enter some basic commands. This output doesn't show up at all. In fact, when I edit my main() function and insert a printf right at the beginning, I am not even getting to see that!? I am pretty confused, I've searched through google for the last 2 hours and found basically nothing about the problem.
When I start the program by typing ./name it just does nothing and lets me input stuff until I press Ctrl-C ...
Does anyone know what could cause this problem? Other basic applications with a few printf() and some calculations work just fine, just this particular one doesn't seem to work while giving no error at all.(I can't put the code of the program online because it is for an university assignment)
Thanks in advance
Last edited: