Given that you've found the source of your error, I'll try to explain you where to put your bibliography file so to let BibTeX find your bibliography.
bibfile.bib in the same directory where your
.tex file is.
bibfile.bib in the directory "C:\filelocation" and call BibTeX in this way (assuming that your
.tex file is
bibtex --include-directory="C:/filelocation" test
In both cases change the offending line:
Note that the second way works with MiKTeX only (it doesn't with TeX Live).
Unfortunately, using the
BIBINPUTS environmental variable to set extra paths where to search for
.bib files (as suggested by @mapf) works bad with MiKTeX, so it is better don't follow that way. This because MiKTeX has a strange manner to manage variables like
BIBINPUTS. In fact, the search order is:
The current directory.
The directory specified with
--include-directory command-line switch.
Directories in the MiKTeX root folder
Directories specified in
In your case, with Complete MiKTeX installed, if you run
kpsewhich bibdata.bib you will get:
C:/Program Files/MiKTeX 2.9/bibtex/bib/mslapa/bibdata.bib
(or something similar) which is the file used by MiKTeX even if you set:
Just for completeness, I forgot to mention this obvious case:
- Put your
bibfile.bib in a subdirectory of your
.tex file, let's say
In this case, BibTeX finds it if you write