add C++ cheat compile test

This commit is contained in:
George Danchev 2011-07-05 07:57:55 +00:00
parent 578097df1e
commit 047955a1bb
1 changed files with 29 additions and 0 deletions

View File

@ -21,3 +21,32 @@
> then we will need configuration means to enable this. By default
> it should not risk to burn one-time media which sit in the drive
> by mere accident.
* C++ cleanness - hopefully store C++ samples code in aux/ directory
in order to avoid C++ code generation from the shell script test,
which would be cumbersome
$ g++ -I ../libisoburn -L ../libisoburn/.libs/ -lisoburn -o cxx cxx.cpp
#include <iostream>
#include <inttypes.h>
#if __WORDSIZE == 32
#define _LARGEFILE_SOURCE 1
#define _FILE_OFFSET_BITS 64
#endif
#include "libisoburn/xorriso.h"
using namespace std;
int main()
{
cout
<< " major:" << Xorriso_header_version_majoR
<< " minor:" << Xorriso_header_version_minoR
<< " micro:" << Xorriso_header_version_micrO
<< endl;
return 0;
}