diff --git a/include/osqp.h b/include/osqp.h
index 4a25388f..8ced8cac 100644
--- a/include/osqp.h
+++ b/include/osqp.h
@@ -50,12 +50,12 @@ void osqp_set_default_settings(OSQPSettings *settings);
* NB: This is the only function that allocates dynamic memory and is not used
*during code generation
*
+ * @param work Solver workspace
* @param data Problem data
* @param settings Solver settings
- * @return Solver environment
+ * @return Exitflag for errors (0 if no errors)
*/
-OSQPWorkspace* osqp_setup(const OSQPData *data,
- OSQPSettings *settings);
+c_int osqp_setup(OSQPWorkspace** work, const OSQPData* data, const OSQPSettings* settings);
# endif // #ifndef EMBEDDED
osqp-eigen
is not compatible with the latest version ofosqp
(0.6.0) https://github.com/oxfordcontrol/osqp/pull/170 The incompatibility is caused by the following two commits:https://github.com/oxfordcontrol/osqp/commit/78d11351555d6d4b0445a8d65d1066bb47df3b00
osqp_setup
now returns an exit flag instead ofOSQPWorkspace*
https://github.com/oxfordcontrol/osqp/pull/170/commits/06678c794eaf78afd448414e6ad1c8fb5b9b3ab0
osqp
now accepts only upper triangular Hessian matrices