Tag Info

New answers tagged

1

There is far too little context here to give a good answer, but for most reasonable contexts the answer is "probably yes". The operating system itself runs many things in parallell on that single core, after all, and you'd be pretty darn annoyed if you had to wait for some web page to finish loading before your mouse pointer would move.


1

Try changing an environment variable - that will not work either. System inherits the environment and the current working directory. So each system call will inherit the current working directory from its parent.


1

A free account at SageMath Cloud may fit your purpose. My account allows me to upload/download programs and compile/run them on a Ubuntu box located in the USA. The purpose of SageMath.org is to provide free, open source math software. The website is based on Python, but Python is not the only programming language available. In particular, an interactive ...


4

Google Compute Engine allows you to provision a Linux VM in your chosen region which you can then ssh into with root privileges. It's cheap and you can get $300 worth of usage as a free trial.


0

You're starting out too big. Starting out with small pieces of code that you've made sure work is better. Why start with a daemon right away, and why that weird signalling to invoke poll_kbd. In C, you should be checking error codes too. Rant finished. Now why it's not working: This >>f = fopen(LOG_FILE, "w"); truncates the log file in each kbd_poll ...


4

The libraries being linked to should be specified after there is a reference to them. Thus, you will change the command to: gcc -g -O2 -fopenmp -L/usr/lib -o lenstool_tab e_nfwg.o lenstool_tab.o midpnt.o nrutil.o polint.o qromo.o read_bin.o lenstool_tab.o -lcfitsio -lm This should fix your problem. You can possibly fix the problem in your Makefile so ...


1

You can also look into readlinkat(..), it handles more error scenario's than readlink(..)


1

It is operating system specific. On Linux and POSIX, consider readlink & readlinkat & lstat (and stat for symlinks without existing targets) & symlink & unlink ... Maybe realpath(3) & access(2) & faccessat & basename(3) might be helpful to you. Perhaps POCO & Glib/GObject/GIO from GTK are offering wrappers working on both ...


2

I believe all you need to do is: Add the compiler binaries to your path. export $PATH=/home/tester/Misc/gnuarm/install/bin:$PATH Run configure in the Dropbear source directory with the correct options for cross-compiling. ./configure --host=arm-none-eabi Continue compilation as per the INSTALL guide. Note: If you do have any problems caused by the ...


1

You can write your code wherever you want, it's just text files. If you wish to compile the code for a platform that is different from the one on which the compiler runs, then you need a cross compiler (by definition). Cross compilers are commonly used to build code using powerful desktop computers than targets resource-limited embedded systems including ...


1

According to GMP documentation https://gmplib.org/manual/Build-Options.html you should use those options: When cross-compiling, the system used for compiling is given by ‘--build’ and the system where the library will run is given by ‘--host’. For example when using a FreeBSD Athlon system to build GNU/Linux m68k binaries, ./configure ...



Top 50 recent answers are included