[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
could not work in C++?
- To: openldap-technical@openldap.org
- Subject: could not work in C++?
- From: owen nirvana <freeespeech@gmail.com>
- Date: Mon, 4 Apr 2011 16:57:21 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=D8OPz8yMzuH431vUHvzxHNc3nU3nmAJDcLtept+NhEI=; b=THfhZOCb537ohhaNqpIQF7X5GPyDRNKA23B1rbgfqcfh0zludLj9Xg0xdYjrLWhhsy b6673HfyU40GRIZsv96fbP7VZe2dIRXTJ6LpZLxC8EcHwAs6OgNkQYB1T27F1UCglGT8 89AxPkBwGAjZYmwzpX3/z3KG6huxp4BTw+3BA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=SwVC9FJ8+h86Tt9fHa1h9Gz3ofackCObxC70n8MeihVQEzC0Tdqqud6Yhj49WcMP6z qwcqVasTPpji37XsvrApqe4MP3PyZh/ikEtXUpTJ+eDAioxJogYa4xtK2ypfE+GKSVsX 6O425JQsXF7uM0VD63XijM0BQI/1IfgqDKOho=
I try to access ldap data in C++, and write a small example which open and close ldap, compiled by g++
error is the following:
error: 'ldap_init' was not decalred in this scope
error: 'ldap_simple_bind_s' was not decalred in this scope
error: 'ldap_unbind' was not decalred in this scope
I have added extern "C" {} block. With my means, it will be compiled using gcc actually. So it work fine in gcc, it should be fine in g++.
gtalk:freeespeech@gmail.com