From 579e0ecd4bb5cd67debcfee10d69c7bfa37d630c Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 20 Jun 2025 10:23:53 +0200 Subject: Adding basic nix files --- c++/lights_out.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'c++/lights_out.cpp') 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& 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(); +} -- cgit v1.2.3