test building with a header file
This commit is contained in:
1 parent
760f698963
commit
06be9a812e
4 files changed
+25
-2
No files matched your search
@@ -0,0 +1,3 @@
|
||||
Rscons::Environment.new do |env|
|
||||
env.Program('header', Dir['*.c'])
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include "header.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
printf("The value is %d\n", VALUE);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
#ifndef HEADER_H
|
||||
#define HEADER_H
|
||||
|
||||
#define VALUE 2
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user