Tag Info

Hot answers tagged


Sure, of course, since you can develop portable software that runs on both MacOS and Linux. Be sure to test it on Linux at regular intervals to make sure you haven't unintentionally added something unportable. If you want to use Linux-specific features then you will have more of a hard time. Depending on what it is you do, the program may compile on MacOS ...


Shell scripts are very similar to the commands you'd type interactively in the shell. In this case, the -o option is telling g++ where to put the binary. So you just tell it you want it in the binary directory: g++ lesson01.cpp -o Binary/lesson01 You can run that interactively (by typing it into the shell), or you can put that in a shell script—both will ...


NO You need to have expect script on target machine. Since, expect script expects expect to be available before executing. Consider it as running bash script without installing bash


Is that a Medion router or NAS? I think your best choice (if nobody has already packaged a C/C++ compiler for direct unpack + use) is to crosscompile your program in a full Linux box and then copy the resulting binaries to your system. Maybe you could use crossgc and crosstool-ng to compile your program.


readelf or objdump both can do this. ELF file compiled by gcc will add .note.ABI-tag and .note.gnu.build-id two sections. both could displayed by objdump -sj .note.ABI-tag ELFFILE objdump -sj .note.gnu-build-id ELFFILE option "s" means display full contents, "j" for indicate section name. This style get hex contents of that sections. readelf -n will ...

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