kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #13488
Re: Compiling kicad r4913 under FreeBSD 10.0
----- Original Message -----
> From: mike <mike@xxxxxxxxxxxxxxxx>
> To: cirilo_bernardo@xxxxxxxxx
> Cc:
> Sent: Wednesday, June 4, 2014 1:45 AM
> Subject: Compiling kicad r4913 under FreeBSD 10.0
>
> Hi,
> I suspect that r4908 introduced changes to utils/idftools/idf_parser.cpp which
> makes it fail to compile under FreeBSD 10.0 and clang 3.3.
>
[snip]
Sorry, my fault. The declaration of olnGroup was changed from map to multimap
but those iterators were not changed. It compiles fine under Debian Linux so
I suspect it's a difference in the implementation of the STL; do you know what
STL is used by BSD?
Anyway, the fix is simple - find occurrences of olnGroup.begin()/end() and
change the declaration of the iterator from:
std::map<std::string, GROUP_OUTLINE*>::iterator
to
std::multimap<std::string, GROUP_OUTLINE*>::iterator
- Cirilo