• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
nickme

SOIL:linking soil to vc 2010

7 posts in this topic

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 ========== Edited by nickme
0

Share this post


Link to post
Share on other sites
Where did soil.a come from? How was it built?

Make sure that soil.a is:[list=1]
[*]Built by the same version of Visual Studio as the one your project is using
[*]Built for the same architecture (x86 (32-bit) vs x64 (64-bit))
[*]Built targeting the same character set (Unicode vs Multibyte)
[/list]
0

Share this post


Link to post
Share on other sites
[quote name='Cornstalks' timestamp='1353820815' post='5003887']
Where did soil.a come from? How was it built?

Make sure that soil.a is:[list=1]
[*]Built by the same version of Visual Studio as the one your project is using
[*]Built for the same architecture (x86 (32-bit) vs x64 (64-bit))
[*]Built targeting the same character set (Unicode vs Multibyte)
[/list]
[/quote]

hi cornstalks,

the soil.a was originally called libSOIL.a. i did not compile from the source, i don't know how [img]http://public.gamedev.net//public/style_emoticons/default/sad.png[/img]

thanks Edited by nickme
0

Share this post


Link to post
Share on other sites
[quote name='nickme' timestamp='1353817946' post='5003879']
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.
[/quote]
Did you only add the search directory, or did you actually link to the file? You have to do Project Properties -> Configuration Properties -> Linker -> Input and add it to Additional Dependencies.
0

Share this post


Link to post
Share on other sites
hi cornstalks,

does it matter if i rename libSOIL.a to SOIL.lib?

i wonder why sfml get into the linker? i set the sfml libs to other project. i did not call sfml function in this project.

i only added the search directories. after i added lib folder to additional dependencies, i got the following errors:

1>------ Build started: Project: Fractals with zoom, Configuration: Release Win32 ------
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_failure_reason already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_image_free already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_load already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_load_from_file already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_load_from_memory already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_loadf_from_memory already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_loadf already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_loadf_from_file already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_is_hdr_from_memory already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_is_hdr already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_is_hdr_from_file already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_hdr_to_ldr_gamma already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_hdr_to_ldr_scale already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_ldr_to_hdr_gamma already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_ldr_to_hdr_scale already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_malloc_guesssize already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_malloc already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_buffer already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_noheader_malloc already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_zlib_decode_noheader_buffer already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_write_bmp already defined in Soil.lib(stb_image_aug.o)
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2005: _stbi_write_tga already defined in Soil.lib(stb_image_aug.o)
1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Soil.lib(stb_image_aug.o) : error LNK2001: unresolved external symbol __alloca
1>C:\Users\rob\DevC++ source\MSVC++\freeglut\fractal\Dynamical system and fractals\Fractals with Zoom\Release\Fractals with zoom.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Edited by nickme
0

Share this post


Link to post
Share on other sites
You may want to ask on the SFML forums, as it looks like SFML is linking to SOIL already (which is why you're getting all these double definition errors), but apparently you can't access all of SOIL's functions (which would be why you got the first two errors).
0

Share this post


Link to post
Share on other sites
hi[quote name='Cornstalks' timestamp='1353861444' post='5003955']
You may want to ask on the SFML forums, as it looks like SFML is linking to SOIL already (which is why you're getting all these double definition errors), but apparently you can't access all of SOIL's functions (which would be why you got the first two errors).
[/quote]

thanks for the reply.

is there a reason why i cannot access all of soil's function?

now after i deleted the sfml from the project property, i got the following errors:

1>------ Build started: Project: Fractals with zoom, Configuration: Release Win32 ------
1>libSoil.a(stb_image_aug.o) : error LNK2001: unresolved external symbol __alloca
1>libSoil.a(image_helper.o) : error LNK2001: unresolved external symbol _sqrtf
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 ========== Edited by nickme
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0