Jan 26, 2010 then i have lib and there i have glut library files and in GL i have glut.h and this i have in C: and in dev c i have set directories in compile options and i have setted new directories. To c:glutincludeGL and lib directory C:glutlib and it no work dont know someone what im doing wrong? Or have someone a tutorial wich working for dev c. Nov 18, 2011 Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Visit Stack Exchange. Apr 26, 2012 Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features.
You can work entirely in Xcode by using the command-line tool template in C. Xcode > File > New > Project > Command-Line Tool > Next > Language: C > Next > Create.
Dev C Error Lglut32 No Such File Or Directory Search
If you do want to work on the command line, you may as well just use the 'clang' program instead. The 'gcc' tool is just a compatibility tool for existing scripts that are expecting the actual 'gcc' program. Apple hasn't used the real 'gcc' for years. (Read up on the GPLv3 for more information.)
The gcc/clang arguments are the same. The '-c' flag instructs the compiler to only compile a single .c file into a .o object file. It won't create an executable. If you are only compiling a single source file, just omit the '-c' flag and the compiler will create an executable named 'a.out' that you can run by typing './a.out'. You can specify '-o <executable name>' if you want to specify a name. Once you get more than a handful of source files, using the terminal starts to become a hassle. At that point, you definitely want to start using Xcode.
I'm not sure why you would try to compile 'helloworlddot1.c' and then get an error message about 'filename.c'. Something else is wrong.
If you are working in the Terminal, it is easiest to use the 'cd' command to move into the same directory as your source files. Then you don't have to keep typing the full path.
It is hard to say what the 'best' community is. There are many to choose from.
Jan 24, 2015 6:00 PM