Well, I've just installed Visual Studio 2010 Express and SP1.
Compiling and linking of the C console example works fine now - that means I get an executable.
I have analysed the ps4000con project properties (compiler, link options) and added the following link options to my own makefile:
link.exe main.obj interfaceSPI.obj util.obj interfacePico.obj /INCREMENTAL:NO /NOLOGO /LIBPATH:"." "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" "PS4000.lib" /ALLOWISOLATION /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /SUBSYSTEM:CONSOLE /OPT:REF /OPT:ICF /LTCG /TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X86
I get now the (new) error message:
error LNK2001: unresolved external symbol _ps4000OpenUnit
According to https://msdn.microsoft.com/en-us//libra ... z(v=vs.100
).aspx a possible root cause
could be mixed versions of the libraries.
As .NET framework I use 4.5.
I hesitate to install .NET 4, because I have no feeling about the consequences.
Really strange: VS 2010 is able to resolve _ps4000OpenUnit , my makefile is not able to do that.
Both approaches are using .NET 4.5
Perhaps the VS 2010 contains some framework with an own .NET wrapper .NET4 -> .NET4.5 ?