Fix to linking problem for Linux in examples.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-maciekd@10600 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2620bb218c
commit
cdd920a6ca
9 changed files with 71 additions and 34 deletions
|
|
@ -10,5 +10,5 @@ all::
|
|||
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' MAIN='$(MAIN)' c_cpp
|
||||
|
||||
clean:
|
||||
rm *.o
|
||||
rm -f *.o *.out *.so *.a
|
||||
|
||||
|
|
|
|||
6
Examples/c/class/test.sh
Executable file
6
Examples/c/class/test.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
|
||||
export LD_LIBRARY_PATH
|
||||
./a.out
|
||||
|
||||
|
|
@ -10,5 +10,5 @@ all::
|
|||
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' MAIN='$(MAIN)' c
|
||||
|
||||
clean:
|
||||
rm *.o
|
||||
rm -f *.o *.so *.out *.a *~
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ int main(int argc, char **argv) {
|
|||
printf("Foo is %f\n", Foo);
|
||||
printf("Foo by ptr is \%f\n", *Foo_ptr);
|
||||
printf("my_str is: %s\n", my_str);
|
||||
printf("array_of_strs contains %s and %s\n", get_str(0), get_str(1));
|
||||
printf("GCD(%d, %d)=%d\n", a, b, gcd(a, b));
|
||||
printf("array_of_strs contains %s and %s\n", get_str(0), get_str(1));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
6
Examples/c/simple/test.sh
Executable file
6
Examples/c/simple/test.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
|
||||
export LD_LIBRARY_PATH
|
||||
./a.out
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue