You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by David Sallge <da...@noffz.com> on 2005/08/12 15:29:37 UTC
VS and log4cxx question
Hi to all!
I have three questions:
The first one: Can you already guess when the next release version is
due to be ready?
The second one: What about Borland c++Builder support? Is it possible to
use log4cxx's current version with Borland?
And the last one: I'm trying to use the ready-compiled DLL of the
current version (from CVS) in a Visual Studio .NET Project (programming
C++), but as I'm new to using external DLLs in VS, has anyone a
guideline for me how to import/use/bind die dll to VS so that I can use
it's functions?
Great thanx in advance!
Greetings,
David
--
_________________________________________
Name: David Sallge
Company: Noffz ComputerTechnik GmbH
Address: Tackweg 25
D-47918 Toenisvorst
Germany
Phone: +49-2151-99878-40
Fax: +49-2151-99878-88
e-mail: david.sallge@noffz.com
Internet: www.noffz.com
_________________________________________
Re: VS and log4cxx question
Posted by David Sallge <da...@noffz.com>.
Curt Arnold schrieb:
>
> On Aug 15, 2005, at 4:32 AM, David Sallge wrote:
>
>> Hello!
>>
>> Thank you very much for your help.
>> I appreciate it very much that you helped me.
>> It worked well, VC now recognises log4cxx-classes and functions.
>> But unfortunately I get a bunch of compile-errors.
>> VC states that there should be a lot of unusual syntax errors in one
>> of its own incude-files: xlocale
>> (the errors are giving "syntax: (" or "missing ;", which obviously
>> are correct.)
>> As I assume that Microsoft coded the file correctly, the problem
>> seems to occure with lox4cxx.
>> If I comment the .h-files of log4cxx, I only get "function not
>> found"-errors, as expected.
>>
>> Any ideas?
>>
>> Thank you very much!
>
>
> Having the specific errors is essential to diagnosing the problem.
> Could you provide a fragment of the error messages? Microsoft
> compilers will output a 4 digit numeric code (like C1234 or LNK1234)
> which can be checked in their knowledge base to find non-obvious
> explanations for the errors).
>
Unfortunately the Error-codes are telling me things which are obviously
correct.
Also the MSDN doesn't give any useful hints, as Microsofts
originally-implemented file (xlocale, without any extension) should be
programmed OK.
The compiler Errors are:
C2059: Syntaxerror: ')' (line 501, xlocale)
C2061: Syntaxerror: identifier '_Locinfo' (line 587, xlocale)
C2065: ':Byte': nondeclarated identifier (line 678, clocale)
just for instance - there are several of each and a few others which
would be too much to post here.
But thank you very much for helping me!
Greetings,
David Sallge
--
_________________________________________
Name: David Sallge
Company: Noffz ComputerTechnik GmbH
Address: Tackweg 25
D-47918 Toenisvorst
Germany
Phone: +49-2151-99878-40
Fax: +49-2151-99878-88
e-mail: david.sallge@noffz.com
Internet: www.noffz.com
_________________________________________
Re: VS and log4cxx question
Posted by Curt Arnold <ca...@apache.org>.
On Aug 15, 2005, at 4:32 AM, David Sallge wrote:
> Hello!
>
> Thank you very much for your help.
> I appreciate it very much that you helped me.
> It worked well, VC now recognises log4cxx-classes and functions.
> But unfortunately I get a bunch of compile-errors.
> VC states that there should be a lot of unusual syntax errors in
> one of its own incude-files: xlocale
> (the errors are giving "syntax: (" or "missing ;", which obviously
> are correct.)
> As I assume that Microsoft coded the file correctly, the problem
> seems to occure with lox4cxx.
> If I comment the .h-files of log4cxx, I only get "function not
> found"-errors, as expected.
>
> Any ideas?
>
> Thank you very much!
Having the specific errors is essential to diagnosing the problem.
Could you provide a fragment of the error messages? Microsoft
compilers will output a 4 digit numeric code (like C1234 or LNK1234)
which can be checked in their knowledge base to find non-obvious
explanations for the errors).
Re: VS and log4cxx question
Posted by David Sallge <da...@noffz.com>.
Hello!
Thank you very much for your help.
I appreciate it very much that you helped me.
It worked well, VC now recognises log4cxx-classes and functions.
But unfortunately I get a bunch of compile-errors.
VC states that there should be a lot of unusual syntax errors in one of
its own incude-files: xlocale
(the errors are giving "syntax: (" or "missing ;", which obviously are
correct.)
As I assume that Microsoft coded the file correctly, the problem seems
to occure with lox4cxx.
If I comment the .h-files of log4cxx, I only get "function not
found"-errors, as expected.
Any ideas?
Thank you very much!
Greetings,
David Sallge
Wagner Augusto Andreoli schrieb:
>Hello, David,
>
>
>
>>but as I'm new to using external DLLs in VS, has anyone a
>>guideline for me how to import/use/bind die dll to VS so that I can use
>>it's functions?
>>
>>
>
>I'm new at this VS/C++ thing too, but I do the following (the implicit
>way of loading DLLs):
>- in the Solution Explorer tree, select your project node
>- right-click and choose Properties (in the menu, click View / Property Pages)
>- in the Configuration Properties tree, choose Linker / Input
>- name the LIB file you wish to use in your project, filling
>"Additional Dependencies" in the right list; if you have one LIB for
>debug, and other for release, then you have to choose the appropriate
>option in the "Configuration" combo box above.
>
>I guess that's it. Forgive me if I forgot some steps, but I think you
>can continue from there... ;)
>
>
>
--
_________________________________________
Name: David Sallge
Company: Noffz ComputerTechnik GmbH
Address: Tackweg 25
D-47918 Toenisvorst
Germany
Phone: +49-2151-99878-40
Fax: +49-2151-99878-88
e-mail: david.sallge@noffz.com
Internet: www.noffz.com
_________________________________________
Re: VS and log4cxx question
Posted by Wagner Augusto Andreoli <wa...@gmail.com>.
Hello, David,
> but as I'm new to using external DLLs in VS, has anyone a
> guideline for me how to import/use/bind die dll to VS so that I can use
> it's functions?
I'm new at this VS/C++ thing too, but I do the following (the implicit
way of loading DLLs):
- in the Solution Explorer tree, select your project node
- right-click and choose Properties (in the menu, click View / Property Pages)
- in the Configuration Properties tree, choose Linker / Input
- name the LIB file you wish to use in your project, filling
"Additional Dependencies" in the right list; if you have one LIB for
debug, and other for release, then you have to choose the appropriate
option in the "Configuration" combo box above.
I guess that's it. Forgive me if I forgot some steps, but I think you
can continue from there... ;)