Re: [eigen] Problem with 3.4 rc1 |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: "eigen@xxxxxxxxxxxxxxxxxxx" <eigen@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [eigen] Problem with 3.4 rc1
- From: "Dijk, Jan van" <J.v.Dijk@xxxxxx>
- Date: Wed, 21 Apr 2021 15:40:38 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=tue.nl; dmarc=pass action=none header.from=tue.nl; dkim=pass header.d=tue.nl; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+ds/H0zVCASkkq8U1UiDNDnZphPTq+sZt9yOWuKyU78=; b=aIJXDnLQ+lUHkJyqd+onFm969PIELIhSYBvjAGrzURsOb56mqlZHTQDI7PgPSCWpTrKhNaHP+dTGcRAuHvd8W+dbiLCJQF0zp0aMSSrN8gKUrbPY4UJc180lAvicB64p2w1Hqc3Ra8NiG254zL2rN0853nouUCaOqg2luCLVwqo9FOSN0AbXbe9sgBliwKmvOA1QaoxG6UGdC24G0chjUEdcfibT3FoMokhz2HySoaV40wsGfEDmxwcgdHvIdodbiQzOt79PDbGnLKYN8LjFrU8DF5PNxTgmF2re0IMSLCRcxvpSDakYKCP9ds41TzmL2A+snhID7JmAth4I5V0D6A==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dWL4crhDoFc4s2bW7CTdOaS019uaP4u4HNW+CmP2yL5OknLjeQdveMLkkT04qjojzv7m+0mVvzv3R/kKuFMiLkzNLY2MQURpg0GzneCAUlGgLQ6gJNw6QSnhp0GbtLf5y6EgNiw1Wkuwmiiw0afj9caBkcS4C6YTLCwoLR8dsEsXPtgrrbsDjEHS9V7m24y+vQk4EFZqPZTWJFoXEwE3clXqriSctsMCMQWkErX0ikuioyDAvxK833fkbMI81gnKEBDomIUokDWg3Q2fBCg3Jjk9ZsjAzZK1YfD7WynsA/Uxla2BzvlHRwf8w0WxDI0Rkxfis811vKZL9Srmt527SQ==
- Authentication-results: lists.tuxfamily.org; dkim=none (message not signed) header.d=none;lists.tuxfamily.org; dmarc=none action=none header.from=tue.nl;
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tue.nl; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+ds/H0zVCASkkq8U1UiDNDnZphPTq+sZt9yOWuKyU78=; b=J8mkJMyrUvAZ4ZincBemkvuz5AY59x3Mm5RJCY1y2roNR/8IxHJvMjkLQRLuPxg3KS2JnpB871kaa1kL+yf/NmcfxFxJA4cJwhfUx5KG5c8lxu1+mCSO/C/s0FwmXsN+WNzjIa9YbqZD1eVQKA00SnW0bd3uSEI2af607/zP6h4=
- Thread-index: AQHXNnIkCn3iUhv7DE+/p+1Mxv3v6aq/FQSAgAAFZU8=
- Thread-topic: [eigen] Problem with 3.4 rc1
Dear Antonio, Rob,
Indeed, Xwindows.h (on my OpenSuSE system) has a #define Status int
It seems reasonable to solve this the same as issue 253: let Eigen produce an understandable #error if Status is already defined. See https://gitlab.com/libeigen/eigen/-/issues/253
Regards, Jan.
________________________________________
From: Antonio Sanchez <cantonios@xxxxxxxxxx>
Sent: Wednesday, April 21, 2021 5:13 PM
To: eigen@xxxxxxxxxxxxxxxxxxx
Subject: Re: [eigen] Problem with 3.4 rc1
My best guess is that somewhere there is a
#define Status int
somewhere in your code, which is then conflicting with the enum value "Status = 3", which is being converted to "int = 3" by the preprocessor.
You may need to undef it before including Eigen.
On Tue, Apr 20, 2021 at 10:48 PM Rob McDonald <rob.a.mcdonald@xxxxxxxxx<mailto:rob.a.mcdonald@xxxxxxxxx>> wrote:
I'm trying 3.4 rc1 on my program. Everything seems to work fine on Windows and MacOS. However, there seems to be some sort of conflict when I try to build on Linux.
We are currently using 3.3.7 and everything works fine. I suppose I could try 3.3.9 if that would be helpful.
The problems only crop up in the graphics part of my program (which does not use Eigen intensively, it just gets included relatively incidentally). My program can also be compiled in a non-graphical version (no GUI, OpenGL, or XWindows libraries allowed at all) - and that works fine. I use FLTK as a cross-platform GUI library. The most significant difference on Linux is the use of X Windows.
I've attached the gcc error log from trying to compile one file -- sorry, it is 884 lines long...
My gut says something is getting #defined that then gives Eigen fits. However, I can't find anything that looks wrong in the code the messages are pointing to.
Any help tracking this down will be very much appreciated.
Rob