Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#26 LNK2019 error with MSVC

open
nobody
None
5
2009-01-27
2009-01-27
Simon Martin
No

Hi,

I use cpptasks to compile a project with MSVC. Now I added an external library (GSL) to my project.
I can properly compile this project using VisualC++2005, but when I try to compile with cpptaks I get a LNK2019 error.

Attached you find the two ant files used (the project is compiled in two sub projects) and below the working VC commands (pasted from the project properties)

Any hints?

Discussion

  • Simon Martin
    Simon Martin
    2009-01-27

     
    Attachments
  • Simon Martin
    Simon Martin
    2009-01-29

    Workaround for this issue:
    Use libgslcblas.lib, libgsl.lib for Ant compiling and libgslcblas_dll.lib, libgsl_dll.lib for VisualC++ compiling.