Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualnickme

Posted 24 November 2012 - 10:40 PM

hi

i am trying to use soil to load a png file into the program. i changed the the name of soil.a to soil.lib as suggest by its website. and link it to vc by project property-> vc++ directory -> library. and included the soil.h to its include directory.

thanks in advance for the advice.

here is the compile errors:

1>------ Build started: Project: Fractals with zoom, Configuration: Release Win32 ------
1>Fractals with Zoom.obj : error LNK2001: unresolved external symbol _SOIL_last_result
1>Fractals with Zoom.obj : error LNK2001: unresolved external symbol _SOIL_load_OGL_texture
1>C:\Users\rob\DevC++ source\MSVC++\freeglut\fractal\Dynamical system and fractals\Fractals with Zoom\Release\Fractals with zoom.exe : fatal error LNK1120: 2 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

#1nickme

Posted 24 November 2012 - 10:32 PM

hi

i am trying to use soil to load a png file into the program. i changed the the name of soil.a to soil.lib as suggest by its website. and link it to vc by project property-> vc++ directory -> library. and included the soil.h to its include directory. i also added linker -> input -> additional dependency to soil.lib, the lib file that i renamed from soil.a

here is the error output:

1>------ Build started: Project: Fractals with zoom, Configuration: Release Win32 ------
1> Fractals with Zoom.cpp
1>Fractals with Zoom.cpp(215): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(234) : see declaration of 'fopen'
1>Fractals with Zoom.cpp(248): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(234) : see declaration of 'fopen'
1>LINK : fatal error LNK1181: cannot open input file 'soil.lib'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

thanks.

PARTNERS