I was trying to use the capture as is explained in org-manual p 74. This is the .emacs file for org mode.
(require 'org-install)
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)
(setq org-default-notes-file (concat org-directory "~/notes.org")) <-- error
(define-key global-map "\C-cc" 'org-capture)
But I get this error. What might be wrong?
Symbol's value as variable is void: org-directory
ADDED
After Dave's answer, I modified the code, and it seems to work fine. But the other problem that I found was C-c c gives me this error.
Symbol's function definition is void : org-capture