Hi List,

I had that annoying issue when I was trying to compile my SNMP app.
After adding some glibmm headers I was unable to compile the code and
given the following errors:

--- 8< ---
/usr/include/glibmm-2.4/glibmm/spawn.h:107: error: expected identifier
before numeric constant
/usr/include/glibmm-2.4/glibmm/spawn.h:107: error: expected `}' before
numeric constant
/usr/include/glibmm-2.4/glibmm/spawn.h:107: error: expected
unqualified-id before numeric constant
/usr/include/glibmm-2.4/glibmm/spawn.h:127: error: expected `)' before
‘error_code’
/usr/include/glibmm-2.4/glibmm/spawn.h:128: error: expected `)' before ‘*’ token
/usr/include/glibmm-2.4/glibmm/spawn.h:129: error: ‘Code’ does not name a type
/usr/include/glibmm-2.4/glibmm/spawn.h:132: error: expected
unqualified-id before ‘private’
/usr/include/glibmm-2.4/glibmm/spawn.h:141: error: ‘friend’ used
outside of class
/usr/include/glibmm-2.4/glibmm/spawn.h:297: error: ‘SpawnFlags’ has
not been declared
/usr/include/glibmm-2.4/glibmm/spawn.h:297: error: ‘SpawnFlags’ was
not declared in this scope
/usr/include/glibmm-2.4/glibmm/spawn.h:299: error: ‘Pid’ has not been declared
/usr/include/glibmm-2.4/glibmm/spawn.h:324: error: ‘SpawnFlags’ has
not been declared
/usr/include/glibmm-2.4/glibmm/spawn.h:324: error: ‘SpawnFlags’ was
not declared in this scope
/usr/include/glibmm-2.4/glibmm/spawn.h:326: error: ‘Pid’ has not been declared
/usr/include/glibmm-2.4/glibmm/spawn.h:355: error: ‘SpawnFlags’ has
not been declared
/usr/include/glibmm-2.4/glibmm/spawn.h:355: error: ‘SpawnFlags’ was
not declared in this scope
/usr/include/glibmm-2.4/glibmm/spawn.h:357: error: ‘Pid’ has not been declared
/usr/include/glibmm-2.4/glibmm/spawn.h:375: error: ‘SpawnFlags’ has
not been declared
/usr/include/glibmm-2.4/glibmm/spawn.h:375: error: ‘SpawnFlags’ was
not declared in this scope
/usr/include/glibmm-2.4/glibmm/spawn.h:377: error: ‘Pid’ has not been declared
/usr/include/glibmm-2.4/glibmm/spawn.h:414: error: ‘SpawnFlags’ has
not been declared
/usr/include/glibmm-2.4/glibmm/spawn.h:414: error: ‘SpawnFlags’ was
not declared in this scope
/usr/include/glibmm-2.4/glibmm/spawn.h:438: error: ‘SpawnFlags’ has
not been declared
/usr/include/glibmm-2.4/glibmm/spawn.h:438: error: ‘SpawnFlags’ was
not declared in this scope
/usr/include/glibmm-2.4/glibmm/spawn.h:508: error: variable or field
‘spawn_close_pid’ declared void
/usr/include/glibmm-2.4/glibmm/spawn.h:508: error: ‘Pid’ was not
declared in this scope
/usr/include/glibmm-2.4/glibmm/spawn.h:512: error: expected
declaration before ‘}’ token
--- >8 ---

If you take a look at the line 107 of spawn.h you'll find 'READ' which
is an element of enum Code and conflicts with #define READ 1 at line
60 in /usr/include/net-snmp/library/snmp_impl.h. After I commented out
the line 60 in snmp_impl.h the errors disappeared and I could compile
my code all right. That didn't seem to affect the behaviour of SNMP
activities in my app.

Regards,
Maciek

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to