• 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.

Archived

This topic is now archived and is closed to further replies.

simulator

Linking Errors with SDK Example1!: Solved TY :)

5 posts in this topic

Hi All- I'm having trouble linking.... Mostly I want to confirm that I can use Directx by simply running example1 that comes with the sdk. 1)Im using Dirextx 3.0 (by necessity- im on windows nt) 2)Compiler is MS Visual c++ Verion 6 professional 3)I create a win32 application using the wizard & cut and paste the ddex1.cpp code- compile & get linking errors below. 4)The readme text in the samples folder talks about doing a make for vc++- (see below) i try this but I get that the name specified (nmake retail) is unrecognized. 5)To ensure that its not a problem of not being able to find the includes, I moved all of them to the project directory. Have also tried including ddraw.h before the others- but same errors. Honestly, I have no idea whats going on...I really just want to get a little example compiled and running to prove that its feasible- my worry is that perhaps the vc++ 6.0 compiler and directx 3.0 are not compatible or that windows nt will screw things up somehow.. If you have any ideas, Id really appreciate hearing them- Thanx Partial listing ******************************** * Copyright (C) 1995-1996 Microsoft Corporation. All Rights Reserved. * * File: ddex1.cpp * Content: Direct Draw example program 1. Creates a Direct Draw * object and then a primary surface with a back buffer. * Slowly flips between the primary surface and the back * buffer. Press F12 to terminate the program. * ***************************************************************************/ #define NAME "DDExample1" #define TITLE "Direct Draw Example 1" #define WIN32_LEAN_AND_MEAN // I also tried placing ddraw.h here- same errors #include "windows.h" #include "windowsx.h" #include "ddraw.h" #include "stdlib.h" #include "stdarg.h" #include "resource.h" #define TIMER_ID 1 #define TIMER_RATE 500 LPDIRECTDRAW lpDD; // DirectDraw object LPDIRECTDRAWSURFACE lpDDSPrimary; // DirectDraw primary surface LPDIRECTDRAWSURFACE lpDDSBack; // DirectDraw back surface BOOL Errors listing ******************************* Compiling... ddex1.cpp Linking... ddex1.obj : error LNK2001: unresolved external symbol _DirectDrawCreate@12 LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/ddex1.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. ddex1.exe - 3 error(s), 0 warning(s) Partial Instructions in the readme file ****************************************** There is a main make files each sample directory: MAKEFILE - for use with Microsoft VC++ 2.0 or higher (NMAKE) There are 2 ways to build each sample, debug or retail. To build a sample as retail with VC++, just type: nmake retail From the SAMPLES directory, you may also run the following batch files: MAKEALL.BAT - makes all examples with Microsoft VC++ Edited by - simulator on July 19, 2001 12:47:07 AM
0

Share this post


Link to post
Share on other sites
Ok, make sure you''re creating a Win32 Application and not a Win32 Console Application. It seems the compiler is looking for your main() function, which doesn''t exist in a Win32 Application.

Second, make sure that you''re linking to ddraw.lib. Go to Project->Settings, then click on the link tab, look down where it says "object/library modules". And in the space below it, after all the others, type in a space and ''ddraw.lib''.

I''m pretty sure those are you''re problems. If you need anymore help, feel free to post it.



"We are the music makers, and we are the dreamers of the dreams."
- Willy Wonka
0

Share this post


Link to post
Share on other sites
For starters, all I have are linux boxes laying around at the moment so I can''t verify this before posting it.

Be sure to include the dxguid.lib in your project as it has the necessary symbols you''ll need to link with.

I''m pretty sure you also need to make a windows application and not a console app. Your project sounds like it''s being linked against the console libs, when it should be linked against window libs, which is what happens when you try to compile something with devstudio without making a project workspace for it. i.e. compiling a source file directly, it defaults to a console build when it builds the workspace for you.

YAP-YFIO
-deadlinegrunt
0

Share this post


Link to post
Share on other sites
Hi & Thanx-

It''s definitly not a console application- just a win32 application & I make a project workspace for it.

I added the ddraw.lib and its worked- it''s no longer complaining about the _DirectDrawCreate@12 but it''s still not working with the _main:

--------------------Configuration: ddex1try2 - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/ddex1try2.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

ddex1try2.exe - 2 error(s), 0 warning(s)



I added dxguid.lib & LIBCD.lib to the libray modules (same way as for ddraw.lib) just for the heck of it but still no go.

I wonder if it could be a video card problem- that''s really the only other thing that im worried about.....

Thanx :-)
0

Share this post


Link to post
Share on other sites
the wizard eh...That might be part of your problem. When you''re selecting your application type, just create a Win32 application and create an empty workspace for it, then create your .cpp as a new file instead of cut''n''pasting into the wizard''s code. Might not make a difference, but it''s worth a try...
--


WNDCLASSEX Reality;
...
...
Reality.lpfnWndProc=ComputerGames;
...
...
RegisterClassEx(&Reality);


Unable to register Reality...what''s wrong?
---------
Dan Upton
Lead Designer
WolfHeart Software
0

Share this post


Link to post
Share on other sites
Ahaha Yahoo its working thank you!!!!
Lol, yes was doing something not quite right in adding the source so thanx to all.

so instructions are:
1)using wizard, create win 32 application
2)next screen choose "empty work space"
3)from main menu choose file-new-c++source
3)cut & paste ddex1.cpp from the sdk into empty source file
4)from main menu choose project-settings & add ddraw.lib to the list of library modules
5)build & voila

ps- no need to copy any header files to the project directory....
how the linker knows where to find ddraw.h must come from adding ddraw.lib.

Thanx again
0

Share this post


Link to post
Share on other sites