diff --git a/src/tests/libs/alm/Jamfile b/src/tests/libs/alm/Jamfile index 65c3c36798..0576d8b683 100644 --- a/src/tests/libs/alm/Jamfile +++ b/src/tests/libs/alm/Jamfile @@ -3,6 +3,8 @@ SubDir HAIKU_TOP src tests libs alm ; SetSubDirSupportedPlatformsBeOSCompatible ; UseLibraryHeaders lp_solve linprog alm ; +UsePrivateHeaders shared ; + Application ALMHelloWorld : HelloWorld.cpp diff --git a/src/tests/libs/alm/TwoViews.cpp b/src/tests/libs/alm/TwoViews.cpp index a1e7e408c8..195b33dec5 100644 --- a/src/tests/libs/alm/TwoViews.cpp +++ b/src/tests/libs/alm/TwoViews.cpp @@ -35,7 +35,7 @@ public: // add a constraint: 2*x1 == right // i.e. x1 is in the middle of the layout - layout->AddConstraint(2, x1, -1, layout->Right(), + layout->Solver()->AddConstraint(2, x1, -1, layout->Right(), OperatorType(EQ), 0); }