New answers tagged

0

I just added the #include line in the makefile user options and it seems to work now, compiling is in progress.


0

There is a good article on this here: http://derekmolloy.ie/beaglebone/setting-up-eclipse-on-the-beaglebone-for-c-development/


1

There isn't actually a package called libstdc++ (possibly you are trying to install libstdc++6?) When apt doesn't find an exact match to a package name, it treats the given string as a regular expression. In this case the ++ causes it to try to install any package whose name matches libstd followed by one or more c - many of which conflict, as you can see. ...


1

First run these commands sudo apt-get update && sudo apt-get upgrade sudo apt-get install build-essential sudo apt-get install aptitude and then try sudo apt-get install libstdc++6 or try this search result and install one desired package from listed http://packages.ubuntu.com/search?keywords=libstdc%2B%2B


1

Here is the finished file (setup-gcc.sh): #################################### echo Stage 1 - Building Dependencies #################################### # make a working directory cd $HOME/Documents rm -rf Cross mkdir Cross cd Cross # install or update all apt-get dependencies sudo apt-get update sudo apt-get upgrade sudo apt-get install gcc ...


1

This answer was lifted from the vmware community forum and describes manually compiling the VMWare services because the kernel being used is newer than the distro available. cd /usr/lib/vmware/modules/source unpack vmnet.tar cd vmnet-only make cd .. unpack vmmon.tar cd vmmon-only make cd .. cp vmmon.o /lib/modules/`uname -r`/misc/vmmon.ko cp vmnet.o ...


3

You haven't told g++ where to find them: by default, it only looks in the top-level /usr/include directory, whereas the headers you are trying to include are in a gtk-2.0 subdirectory. You can either add the include path manually e.g. gcc -I /usr/include/gtk-2.0 test.c or (the recommended way) use pkg-config to pull the required paths and flags directly ...


0

If you install an updated version of gcc through a package manager such as synaptic, or by downloading and installing a .deb file, you won't need to make gcc. You'd only need to do that if you're compiling it from source, which isn't necessary for ordinary use. In fact, unless you removed the gcc package (which would break most of your Ubuntu ...


0

You may have to install the build-essentials by executing sudo apt-get install build-essential. That is the error#1 if you have a fresh installation and want to compile something


0

It is working here, with the options you provided in your last comment gcc dtls.c -o a -lssl -lcrypto -lpthread and then execute it with ./a or use it as one statement gcc dtls.c -o a -lssl -lcrypto -lpthread && ./a


0

I don't know about that version of vlc you have from git, I could not build that many many configuration errors, however I could build this one, from the vlc site. First we need to install these sudo apt-get install git libtool build-essential pkg-config autoconf sudo apt-get build-dep vlc Now get and build vlc wget ...


0

The command for compilation should be gcc fork.c but you had mistakenly written cc fork.c , so that is the reason why fatal error occurred.


2

I tried quite a few times adding the "Wno-error=date-time" line to the CFLAGS, but it didn't seem to work. The easiest solution by far for me was to find the file that was producing the "__DATE__" line by executing grep -r "__DATE__" which (for the source code that I'm working with) gave me the file acore/info.patch:+ "Compiled on " __DATE__ " ...


0

I Had the exactly same issue so i did following sudo apt-get install g++-arm-linux-gnueabihf sudo apt-get install gcc-arm-linux-gnueabihf After this i configure my compilation tools in eclipse to point to the above installed directory and complied the program After compiling i copy the executable into beagle bone black rev c and executed there ...



Top 50 recent answers are included