On 09/15/2012 02:08 PM, Ilya Chernykh wrote:
What should I do?
[ 49s] ./main.h:38:15: error: previous declaration of 'char** environ' with 'C++' linkage [ 49s] In file included from util.cpp:45:0: [ 49s] /usr/include/unistd.h:546:15: error: conflicts with new declaration with 'C' linkage
Remove the declaration in main.h and use the one coming from the C Library. char **environ is part of the C Library and should have C linkage, not C++. This is a bug in main.h, Andreas -- Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg) GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org