Linux教程

Linux C语言编程基础

本文主要是介绍Linux C语言编程基础,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
# Linux C语言编程基础
0.基于Ubuntu或OpenEuler完成下面的任务(OpenEuler有加分)
<font color ="red">1.</font> 选择教材第二章的一节进行编程基础练习(2.10,2.11,2.12,2.13,2.14任选一个)
<font color ="red">2.</font> 建立自己的项目目录,包含自己学号信息(如20190100linkedlist),构建项目结构(src, include,bin, lib, docs, test...),然后把相应代码和文档放置到正确位置,用tree命令查看项目结构,提交截图(5分) ![tree](https://upload-images.jianshu.io/upload_images/27026182-09d5603c2226f534.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
<font color ="red">3.</font> 进行gcc相关练习(ESc, iso, -I等)提交相关截图(5分) ![esc-iso](https://upload-images.jianshu.io/upload_images/27026182-1f42d5d9d38cde0e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) -I操作我用的是PPT上的代码,但PPT的代码有个问题是main.c文件中缺少#include”head.h”。 ![include](https://upload-images.jianshu.io/upload_images/27026182-2a736957abb9d7f3.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) ![-I](https://upload-images.jianshu.io/upload_images/27026182-7443277d66896b67.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
<font color ="red">4.</font> 进行静态库,动态库制作和调用练习,提交相关截图(5分)
静态库

<font color ="red">5.</font>进行gdb相关练习,至少包含四种断点的设置,提交相关截图(10分)
<font color ="red">6.</font> 编写makefile(5分)
这篇关于Linux C语言编程基础的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!