New files creation and Makefile
2015-04-21 09:05
495 查看
These days while coding on Gnome-Logs, I gotta create two new files that are gl-misc.c and gl-misc.h. And then I met some error related to this. Here's how it happens.
I created two new files in the project and wrote relative codes in these two files. Then I compiled the program, but I got a error saying that the function in gl-misc.c is not defined. I'm pretty confused about this. I did include the header file. Right
now something came into my mind. I ever did things like this. In the second patch I contributed to Gnome-Logs, I created two new files too to get the job done. Then I realized I need to add something in the Makefile.
So here is the solution. When you are adding new files to a gnome project. you need add the two files in the Makefile.am file. The screenshot down below shows how it should be done. (L37 and L66)
I created two new files in the project and wrote relative codes in these two files. Then I compiled the program, but I got a error saying that the function in gl-misc.c is not defined. I'm pretty confused about this. I did include the header file. Right
now something came into my mind. I ever did things like this. In the second patch I contributed to Gnome-Logs, I created two new files too to get the job done. Then I realized I need to add something in the Makefile.
So here is the solution. When you are adding new files to a gnome project. you need add the two files in the Makefile.am file. The screenshot down below shows how it should be done. (L37 and L66)
相关文章推荐
- New files creation and Makefile
- ASP.NET 5: New configuration files and containers
- Ownership of New Files and Directories(4.6)
- makefile.new(7117) : error U1087: cannot have : and :: dependents for same target
- makefile.new(7117) : error U1087: cannot have : and :: dependents for same target
- How To Get Log, Trace Files In OA Framework Pages And Concurrent Request Programs
- open files in a directory and then find someword in the text tcl tk
- Gesture Recognizer code and source files
- How To Get Log, Trace Files In OA Framework Pages And Concurrent Request Programs (文档 ID 290614.1)
- Page Cache, the Affair Between Memory and Files
- Java equivalents of malloc(), new, free() and delete
- Most Common Solutions to FRM-41839 and .tmp Files Not Being Deleted
- cp - copy files and directories
- codeforces Good Bye 2015 E. New Year and Three Musketeers
- 在vs2008下使用cygwin(13):i686-pc-cygwin/newlib/libc/locale/Makefile分析
- New eXtremeDB Financial Edition Version 6.0 Ramps Up Database System's Speed, Scalability and Develo
- Reading and Writing Perl Config Files
- Function not available to this responsibility After Creating and Registering a New Form
- 一次向svn中增加所有新增文件 svn add all new files
- Flexible, organic and biodegradable: Stanford researchers develop new wave of electronics