Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
刚刚做完了文件输入输出的习题
社区开发
2081
views ·
0
replies ·
To
floor
Go
xliang9550
deepin
2015-06-11 11:21
Author
基本上还是比较顺手,只有一个多文件的项目遇到了一点小障碍,需要共享文件指针变量。
解决的方法是在main所在文件内定义全局的文件指针变量,在其他源文件中加入extern声明。
不过诡异的是,第一次编译的时候,在链接过程中提示变量重复定义,但是过一段时间重新编译就可以了……
Reply
Like 0
Favorite
View the author
All Replies
No replies yet
Please
sign
in first
Featured Collection
Change
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Deepin 25.0.10 Black Screen on booting
Suggestions for language display
Popular Events
More
解决的方法是在main所在文件内定义全局的文件指针变量,在其他源文件中加入extern声明。
不过诡异的是,第一次编译的时候,在链接过程中提示变量重复定义,但是过一段时间重新编译就可以了……