Syntax for setenv function ?

[email protected] Fri, 23 Apr 2004 11:30:59 +0200
Newsgroups gmane.emacs.xemacs.general
Message-ID <[email protected]>
Hello,

Today I tried to make my life a little easier with the following function:

(require 'env)

(defun set-arm-environment()
  "Set environment variables so that compilation for arm is possible"
  (interactive)
  (progn ( ( setenv "QTDIR" "/opt/qt/arm/qt3" )
           ( setenv "LD_LIBRARY_PATH" "/opt/qt/arm/qt3/lib" )
           ( setenv "QMAKESPEC" "qws/linux-arm-g++" )
           )
         )
  )

When I execute this function I get the following error:

Invalid function: (setenv "QTDIR" "/opt/qt/arm/qt3")
 
C-h f setenv has no argument list, so I don't know if my arguments are 
correct - but two strings seem ok to me.
It seems that "setenv" itself is unknown...

Could you please help me ?

TIA

Markus Grunwald
Softwareentwicklung

PRÜFTECHNIK Condition Monitoring GmbH
Oskar-Messter-Straße 19-21
85737 Ismaning
www.pruftechnik.com
Tel: +49 (0)89 99616177
Fax: +49 (0)89 99616200