• General Linux Chat and Small Questions v.2
    2,323 replies, posted
[QUOTE=PvtCupcakes;32815788]Using gcc isn't too bad. If you just have one file, you can easily do: [code] gcc -o name_of_output_file main.c [/code] Use g++ if it's a C++ program If you have multiple files, then using GCC manually is kind of a pain, but thats where a Makefile comes in. Makefiles can be difficult to learn how to write, but I wrote one that is generic enough that it can compile any program I write. I just have to change the list of files to compile.[/QUOTE] Or instead of writing Makefiles, you can write CMakeLists.txt files or premake4.lua files, for use with CMake and premake4 respectively. For example, I've used this kind of "template" CMake file for many of my projects: [code] set( EXECUTABLE_OUTPUT_PATH "bin/" ) set( LIBRARY_OUTPUT_PATH "lib/" ) project(MyProject) include_directories( "include" ) link_directories( "lib/" ) file( GLOB_RECURSE MyProject_SRCS src/*.cpp ) add_executable( MyProject ${MyProject_SRCS} ) [/code]
I might as well just post mine [code] CC=gcc LD=ld CFLAGS=-Wall -g BINDIR=bin ODIR=build SRCDIR=src _OBJ= main.o \ other_file.o OBJ=$(patsubst %, $(ODIR)/%, $(_OBJ)) LIBS= OUTPUT=bin/main default: $(ODIR) $(BINDIR) $(OUTPUT) $(OUTPUT): $(OBJ) $(CC) -o $@ $^ $(CFLAGS) $(LIBS) $(ODIR)/%.o: $(SRCDIR)/%.c $(CC) -c -o $@ $< $(CFLAGS) $(ODIR): mkdir -p $(ODIR) $(BINDIR): mkdir -p $(BINDIR) clean: build-clean dist-clean build-clean: rm -rf $(ODIR) dist-clean: rm -f $(OUTPUT) [/code] Just change _OBJ to your list of source files. You can probably do something clever to get all files in src/ or something though. And you put in your libraries in LIBS. So to use libcurl and libssl you would put LIBS=-lcurl -lssl
Is it possible to install the VC++ compiler on Linux? Code::Blocks presents itself as a multi-compiler solution, but I'm not sure VC++-compiled code would even sometimes run in a Linux environment, much like Visual Studio sometimes throws errors on perfectly workable gcc code.
[QUOTE=nERVEcenter;32823562]Is it possible to install the VC++ compiler on Linux? Code::Blocks presents itself as a multi-compiler solution, but I'm not sure VC++-compiled code would even sometimes run in a Linux environment, much like Visual Studio sometimes throws errors on perfectly workable gcc code.[/QUOTE] It will probably work through wine, but as far as I know you can't get it running natively on Linux.
[QUOTE=nERVEcenter;32823562]Is it possible to install the VC++ compiler on Linux? Code::Blocks presents itself as a multi-compiler solution, but I'm not sure VC++-compiled code would even sometimes run in a Linux environment, much like Visual Studio sometimes throws errors on perfectly workable gcc code.[/QUOTE] Nope. And I consider it a blessing it doesn't. VC++ is awful.
[QUOTE=PvtCupcakes;32827607]Nope. And I consider it a blessing it doesn't. VC++ is awful.[/QUOTE] I'm glad to be following the standards, and avoiding the non-standard "Microsoft standards".
I really wish Adobe would release flash in a .deb. I'm too ignorant to install it otherwise since 90% of the things I've tried don't work.
Dunno about Ubuntu, but Debian has a "flashplugin-nonfree" package in the contrib repository.
Lightweight 2 pane file manager for Arch please. I can't decide, someone do it for me.
[QUOTE=Bonzai11;32839441]Lightweight 2 pane file manager for Arch please. I can't decide, someone do it for me.[/QUOTE][url]http://www.obsession.se/gentoo/[/url] [editline]18th October 2011[/editline] it's not gentoo linux, by the way. gentoo file manager predates the distribution (distributed as gentoo, enoch is a little older) by about a year.
[QUOTE=Dr. Deeps;32836006]I really wish Adobe would release flash in a .deb. I'm too ignorant to install it otherwise since 90% of the things I've tried don't work.[/QUOTE] Pretty sure Ubuntu has a flash plugin package in the repos.
Which Ubuntu desktop enviroment would you recommend, xfce, or the new Unity enviroment?
[QUOTE=Waterrmelonn;32842094]Which Ubuntu desktop enviroment is better, xfce, or the new Unity enviroment?[/QUOTE] Try both and see what you like. It's usually what it comes down to. There doesn't exist a "better" DE, only a DE that you like more.
[QUOTE=T3hGamerDK;32842120]Try both and see what you like. It's usually what it comes down to. There doesn't exist a "better" DE, only a DE that you like more.[/QUOTE] Actually meant to say recommend.
[QUOTE=Waterrmelonn;32842158]Actually meant to say recommend.[/QUOTE] I'd still say the same. Just try both, and see what fits you the best :)
Which app is that sexy desktop right-click menu that houses everything you might want? So far as I can tell, it's customizable.
Thanks for the recommendation buttsex, but I went over pcmanfm and figured out what I had done wrong in my previous install; I personally love its interface. I didn't notice clementine need pulseaudio so now I have that all set up. Does anyone have any recommendations for a simple volume control for arch, or any insight on how to get my properly recognized media keys to work? I really feel like the answer is right in front of me, but have to much tunnel vision.
[QUOTE=nERVEcenter;32843524]Which app is that sexy desktop right-click menu that houses everything you might want? So far as I can tell, it's customizable.[/QUOTE]OpenBox
Figured Arch was cool and stuff, but seeing that I'm fairly new to all the linux stuff, I thought I'd be better set up with running Ubuntu again. Now what I really love is it didn't took longer than 10 minutes and I got Ubuntu installed.
[QUOTE=Torekk;32843751]Figured Arch was cool and stuff, but seeing that I'm fairly new to all the linux stuff, I thought I'd be better set up with running Ubuntu again. Now what I really love is it didn't took longer than 10 minutes and I got Ubuntu installed.[/QUOTE]I'm fairly new as well and Arch isn't too hard to install
[QUOTE=Dr. Deeps;32836006]I really wish Adobe would release flash in a .deb. I'm too ignorant to install it otherwise since 90% of the things I've tried don't work.[/QUOTE] sudo apt-get install ubuntu-restricted-extras Gets you a bunch of other codecs too.
I remember when Ubuntu used to be massive in size (the iso) and now it's smalle enough to fit on a CD (700mb)? HOW [editline]18th October 2011[/editline] and I really wanna try Ubuntu 11.10 it seems really fucking awesome
[QUOTE=TehWhale;32844941]I remember when Ubuntu used to be massive in size (the iso) and now it's smalle enough to fit on a CD (700mb)? HOW[/QUOTE] Cloud-based installations I think.
[QUOTE=Dr. Deeps;32836006]I really wish Adobe would release flash in a .deb. I'm too ignorant to install it otherwise since 90% of the things I've tried don't work.[/QUOTE] In Ubuntu 11.10 Flash is a .deb.
Why are you all assuming I'm running Ubuntu? :v: Anyways it's installed, but sound doesn't work.
[QUOTE=Dr. Deeps;32846814]Why are you all assuming I'm running Ubuntu? :v: Anyways it's installed, but sound doesn't work.[/QUOTE] You didn't state otherwise, and the majority of Linux users with a .deb package manager run Ubuntu.
[QUOTE=Dr. Deeps;32846814]Why are you all assuming I'm running Ubuntu? :v: Anyways it's installed, but sound doesn't work.[/QUOTE] You're currently running Windows.
[QUOTE=Soviet_Banter;32847534]You're currently running Windows.[/QUOTE] I dual boot Debian with Windows. There are times I think of going back to ubuntu though. I think I'm going to try 11.10 on a USB and see if I like it.
Probably sounds dumb, but Archbang is Arch with essential packages installed right?
Pretty sure, that and Openbox
Sorry, you need to Log In to post a reply to this thread.