我最近安装了Ubuntu 11.10以及CodeBlocks IDE,我知道默认情况下我有gcc和std库.
我的问题是:
我需要使用gcc生成一个简单的"Hello World"ELF32可执行文件.我似乎没有gcc-elf命令.是否可以在不重新构建gcc的情况下创建ELF二进制文件而不是a.out?
(我假设应该可以选择一些选项,但我不确定如何继续)
^这不是一个重复的问题^
更新:
我对编程很新,我现在才刚刚遇到makefile.
在过去的几个月里,我从各个地方下载了一堆教程和源代码; 到目前为止,我只使用VS解决方案,并一直在避免它们.
我在google上看过多种使用Makefiles的方法,但它们的复杂性各不相同......
我对它们没有任何线索或如何使用它们.谢谢.
编辑(重新措辞):
总而言之,由于明显的混淆,我的问题是(并且一直是):
1) Is there a good tutorial that comes recommended or is it easy to get started with Makefiles?
2) How do you launch and run an existing Makefile? And,
3) Do Makefiles hold any vital data about the program or could I just use the `.h` and `.cpp` files that come with them in a new solution built from scratch?
Run Code Online (Sandbox Code Playgroud)