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: dietmarw Owned by: dietmarw
Priority: normal Milestone:
Component: Version:
Keywords: Cc: dietmarw,

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 dietmarw 16 years ago.
compile-omc-r3807_newMico.log (92.3 KB) - added by dietmarw 16 years ago.
compilation log with newly compiled mico

Download all attachments as: .zip

Change History (7)

Changed 16 years ago by dietmarw

comment:1 Changed 16 years ago by adrpo

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 Changed 16 years ago by adrpo

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 Changed 16 years ago by dietmarw

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.

Changed 16 years ago by dietmarw

compilation log with newly compiled mico

comment:4 Changed 16 years ago by adrpo

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 Changed 14 years ago by sjoelund.se

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

Note: See TracTickets for help on using tickets.