Tag Info

Hot answers tagged

4

#include <string> is a C++ directive. Rename your file to kai.cpp And compile it with g++ kai.cpp -o kai


1

C The string library is the file string.h, so: #include "string.h" Example: #include "string.h" #include "stdio.h" void main(){ char src[2] = "Hi"; char dest[2]; strcpy(dest, src); printf("%s\n", dest); // Will print Hi }


1

$ gcc -Wall -pedantic -o hw hw-no-return.c hw-no-return.c:1:1: warning: C++ style comments are not allowed in ISO C90 [enabled by default] // 'Hello World!' program ^ hw-no-return.c:1:1: warning: (this will be reported only once per input file) [enabled by default] hw-no-return.c:5:1: warning: return type defaults to ‘int’ [-Wreturn-type] main() ^ ...


1

I would recommend that you use the latest sources from SVN. Celestia 1.6.1 is quite old. Celestia 1.7 was never released, but it was close to being released. There is no development at the moment in Celestia SVN. The recommended UI for Celestia 1.7 is QT4. Makefile for building this UI is generated with qmake, not with GNU autotools. Edit celestia.pro. ...


1

You need command substitution syntax around the mysql_config command; either with 'backticks': gcc createdb.c -o createdb -std=c99 `mysql_config --cflags --libs` or with $(...) gcc createdb.c -o createdb -std=c99 $(mysql_config --cflags --libs)



Only top voted, non community-wiki answers of a minimum length are eligible