Tag Info

New answers tagged

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)


0

I think your gcc is too old. the apt package system prefers your software to be up-to-date. do an 'apt-get update' then 'apt-get upgrade' OR try installing your flex software with the '--no-install-recommends' flag. seems the upgrade in question requires uninstall then new install.


0

I am having sometimes the same issue. It is not caused by recursion itself but by Linux going out of memory. Linux lets programs to allocate as much space as they need until there is absolutely no memory left. Because of this, your machine becomes unable to handle primitive operations. Windows behaves in slightly another way. It leaves some free space for ...


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. ...


0

Ok I fixed it: I removed the packages that were causing the errors, starting by valgrind: sudo apt-get remove valgrind and then the 3 other ones. And no more errors after that.


-1

I like very much "Sublime text" For SUBLIME text2 : sudo add-apt-repository ppa:webupd8team/sublime-text-2 sudo apt-get update sudo apt-get install sublime-text For SUBLIME text3 sudo add-apt-repository ppa:webupd8team/sublime-text-3 apt-get update sudo apt-get install sublime-text-installer


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() ^ ...


0

The problem occurs when configuring a Bochs build with --enable-debugger, and seems to be a bug in Bochs's automatic build configuration wherein it incorrectly omits -pthread from the linker flags on Linux platforms. There is no need to edit the Makefile as suggested in the previous answer. Rather, the workaround is to specify LDFLAGS='-pthread' when ...


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 }


4

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


0

Solution: cd /usr/lib/gcc/x86_64-linux-gnu/4.6 sudo ln -s /usr/lib/gcc/x86_64-linux-gnu/4.8/libgfortran.a libgfortran.a



Top 50 recent answers are included