unkown character error?

Hi,

I am currently programing in Visual Studios C++ (6.0) and using Windows XP.

I am programming a device called NI USB 6009 (an analog to digital converter)

I have hit problems and I think they can be basic due to that I am new in programming.

I had before problems with adding my header files. First it did not find the file and then it was "permission denied". But after reading in forums I think I managed to overcomes this. The reason that I think I overcome this is because now it is instead saying:

1>C:\Program Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev\lib\msvc\NIDAQmx.lib(2) : error C2018: unknown character '0x60'
1>C:\Program Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev\lib\msvc\NIDAQmx.lib(3) : error C2018: unknown character '0x11'

So it seems to find and open my library file (NIDAQmx.lib) but it does not know the characters?

How can I solve this problem?

This is what I include in my .cpp file:

#include "stdafx.h"
#include <NIDAQmx.lib>
#include <stdio.h>
#include "NIDAQmx.h"

This is what I recieve:

1>------ Build started: Project: T_win32consoleapplication, Configuration: Release Win32 ------
1>Compiling...
1>stdafx.cpp
1>C:\Program Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev\lib\msvc\NIDAQmx.lib(1) : error C2059: syntax error : '<'
1>C:\Program Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev\lib\msvc\NIDAQmx.lib(2) : error C2018: unknown character '0x60'
1>C:\Program Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev\lib\msvc\NIDAQmx.lib(3) : error C2018: unknown character '0x11'
1>C:\Program Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev\lib\msvc\NIDAQmx.lib(3) : error C2018: unknown character '0x5'
1>C:\Program Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev\lib\msvc\NIDAQmx.lib(3) : error C2018: unknown character '0x5'
1>C:\Program Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev\lib\msvc\NIDAQmx.lib(3) : error C2018: unknown character '0x2'
1>C:\Program Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev\lib\msvc\NIDAQmx.lib(3) : error C2018: unknown character '0x5'

and so on...

I would really appriciate help!

Thanks,

Hanna
You can't #include a library like that. Just remove the #include of NIDAQmx.lib.

You need to link against NIDAQmx.lib.
Topic archived. No new replies allowed.