Opened 16 years ago

Last modified 14 years ago

#1030 closed defect (worksforme)

Compilation fails with multiple error: ‘strcmp’ was not declared in this scope

Reported by: Dietmar Winkler Owned by: Dietmar Winkler
Priority: normal Milestone:
Component: Version:
Keywords: Cc: Dietmar Winkler,

Description

After ages I did another test compilation of OMC on my machine
Linux HeX 2.6.27-11-generic #1 SMP Fri Dec 19 16:29:52 UTC 2008 i686 GNU/Linux
(Ubuntu 8.10, 32 bit)
and the compilation process gets stuck on this error:

error: ‘strcmp’ was not declared in this scope

in multiple places. See attached compilation log.

Attachments (2)

compile-omc-r3807.log (78.8 KB ) - added by Dietmar Winkler 16 years ago.
compile-omc-r3807_newMico.log (92.3 KB ) - added by Dietmar Winkler 16 years ago.
compilation log with newly compiled mico

Download all attachments as: .zip

Change History (7)

by Dietmar Winkler, 16 years ago

Attachment: compile-omc-r3807.log added

comment:1 by Adrian Pop, 16 years ago

Hi,

omc_communication.cc is automatically generated from omc_communication.idl
so it seems that the latest cleanup of gcc headers generates problems for
the code generated by mico. However, I remember I fixed this somehow.

I just compiled OpenModelica on my Ubuntu 8.10 yesterday and went fine!
I will try a clean and make to see if this problem shows up.

Are you sure you got the latest code from subversion?

Cheers,
Adrian Pop/

comment:2 by Adrian Pop, 16 years ago

Hi again,

For me it works fine in Ubuntu 8.10.
The truth is that I compiled mico myself in the
virtual host, so it might be that's why it works.

http://www.mico.org/pipermail/mico-devel/2008-November/010208.html|http://www.mico.org/pipermail/mico-devel/2008-November/010208.html
You might have to add #include <cstring>
in /usr/local/include/mico/throw.h

Cheers,
Adrian Pop/

comment:3 by Dietmar Winkler, 16 years ago

OK, I recompiled mico (with the manual include limits.h fix). But now it gets stuck at

../{{Pltpkg2/../3Dpkg/VisualizationWidget.h:92: error: ISO C++ forbids declaration of ‘SoQtExaminerViewer’ with no type}}
{{../Pltpkg2/../3Dpkg/VisualizationWidget.h:92: error: expected ‘;’ before ‘*’ token}}
{{../Pltpkg2/../3Dpkg/VisualizationWidget.h:93: error: ISO C++ forbids declaration of ‘SoQtRenderArea’ with no type}}
{{../Pltpkg2/../3Dpkg/VisualizationWidget.h:93: error: expected ‘;’ before ‘*’ token}}
{{e.cpp: In function ‘int main(int, char)’:}}
{{e.cpp:41: error: ‘SoQt’ has not been declared}}

see attached  Compilation log  compile-omc-r3807_newMico.log

PS: Heyhey it's me again the one with all those strange errors.

by Dietmar Winkler, 16 years ago

compilation log with newly compiled mico

comment:4 by Adrian Pop, 16 years ago

Have you read the latest readme?
You need to install Coin3d and SoQt!
{{{sh: coin-config: not found
sh: soqt-config: not found

sh: coin-config: not found

sh: soqt-config: not found
}}}

Cheers,
Adrian Pop/

comment:5 by Martin Sjölund, 14 years ago

Closed since we made tons of changes to the build system in the last year

Note: See TracTickets for help on using tickets.