Hi Emma,

You cannot open single project file, you must only use the workspace
(Xalan.dsw), since that contains the dependencies for all of the projects.
This is how Microsoft Visual Studio works, so you need to understand that.

Create your own project targetting the appropriate executable type.  In
this case, that's probably a Win32 console application, and make sure you
create a new workspace (I believe that's the default).  Copy _all_ of the
settings from all of the tabs from one of Xalan's sample applications to
your new project, with exception of any paths, which you should adjust to
accomodate where the files are on your machine.  Then, create the source
file and add the code you need.

When you build, you will get link errors, since you haven't added the
necessary link libraries.  At this point you have a choice.  You can either
add the Xalan link libraries one by one to the Oject/Libary modules field,
until you get a clean link, or you can add the Xalan project files to your
workspace, and set up the dependencies.  The former is the recommended way,
since it doesn't require rebuilding all of Xalan.  The later will keep the
Xalan targets up-to-date, but requires you copy all of the dependecies over
from the Xalan workspace, even for Xalan's own libraries.

Visual Studio is quite different from traditional Make-based environments,
so it's critical you know how everything works before you try to use it.
Otherwise, you'll just be frustrated trying to get things working.

Dave



                                                                                
                                                        
                      "Willis, Emma"                                            
                                                        
                      <[EMAIL PROTECTED]         To:      
"'[email protected]'" <[email protected]>                 
                      com>                     cc:      (bcc: David N 
Bertoni/Cambridge/IBM)                                            
                                               Subject: links still             
                                                        
                      11/22/2002 01:55                                          
                                                        
                      AM                                                        
                                                        
                                                                                
                                                        



Dave, thanks for the step-by-step instructions, I thought i was getting
somewhere.


I managed to rebuild the complete Xalan workspace, and if I try to just
rebuild one of the projects (e.g. XalanTransformer) from within the Xalan
workspace, it goes just fine.  However, if I then close the Xalan workspace
and re-open just the XalanTransformer project and try to rebuild it, I get
all of the link errors.


What settings do I need to change to avoid this?  Maybe it would help if
you could tell me what my settings should really look like if I am trying
to write my own application outside of the xalan folders (just a copy of
the example simple transformation from the website at present).


Thanks for your patience


emma






  • links still Willis, Emma
    • David N Bertoni/Cambridge/IBM

Reply via email to