diff options
Diffstat (limited to 'c++')
-rw-r--r-- | c++/lights_out.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/c++/lights_out.cpp b/c++/lights_out.cpp index 9b8503f..810f403 100644 --- a/c++/lights_out.cpp +++ b/c++/lights_out.cpp @@ -91,8 +91,8 @@ bool lu_decompose_gf2(Mat& R, std::array<size_t,MN>& P){ return true; } - -int main(){ +extern "C"{ +int fake_main(){ Mat A; Vec b{ @@ -169,3 +169,8 @@ int main(){ return 0; } +} + +int main(){ + return fake_main(); +} |