You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Tyler, Michelle" <Mi...@unisys.com> on 2012/08/25 01:54:53 UTC

Visual Studio is having trouble viewing the headers

Hi!  I'm writing a simple test program using the Subversion APIs to get more familiar with the process of calling the functions and so far I haven't been able to compile my code because of errors in the header files in the svn-win32-1.7.4.zip package I downloaded.  The errors I usually get are undefined variable and mission semicolons and missing brackets.  My question is, how do I effectively use these headers/libs with my test program?  I feel like I'm not setting things up correctly for use of the API.  Feel free to ask me to clarify anything.

Re: Visual Studio is having trouble viewing the headers

Posted by Ulrich Eckhardt <ul...@dominolaser.com>.
Am 25.08.2012 01:54, schrieb Tyler, Michelle:
> I'm writing a simple test program using the Subversion APIs to get
> more familiar with the process of calling the functions and so far I
> haven't been able to compile my code because of errors in the header
> files in the svn-win32-1.7.4.zip package I downloaded.  The errors I
> usually get are undefined variable and mission semicolons and missing
> brackets.

I assume you are using C or C++, both of which feature a 
macro-replacement feature (called preprocessor) that can totally mess up 
the source code it runs over with just a single #define, leading to 
incomprehensible errors during the compiler stage. In practice, that 
means that

a) without the error messages
b) without the code triggering the faults
c) possibly without the compiler settings

there is little that anyone can do to help you.

In general, for VC, you need to set up the include path so it finds the 
header files (I guess you have that part working already). Then, you 
need to tell the linker where to find things and perhaps what library to 
link, otherwise you get "unresolved symbol" errors while linking. Then, 
you need to tell the runtime loader where to find the DLLs, which you 
can achieve e.g. via the PATH environment or the current working directory.

Good luck!

Uli
**************************************************************************************
Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Domino Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************