Error Undefined Reference To Direct3dcreate9 4
topic ForumsMembersHelp Files Developer Journals Gallery Calendar Downloads Resources Store Classifieds Tracker Links Home For Beginners Articles All Articles Post an Article Technical Game Programming General Programming Graphics Programming and Theory DirectX and XNA OpenGL and Vulkan Multiplayer and Network Programming Artificial Intelligence Math and Physics Mobile Development Middleware, Libraries, and Tools Virtual and Augmented Reality Creative Game Design Music and Sound Visual Arts Business Breaking into the Industry Production and Management Interviews Business and Law Event Coverage Forums All Forums Technical Game Programming General Programming Graphics Programming and Theory DirectX and XNA OpenGL & Vulkan Multiplayer and Network Programming Artificial Intelligence Math and Physics Mobile & Console Development Build Systems & Source Control Middleware, Libraries, and Tools Virtual and Augmented Reality Creative Game Design Writing For Games Music and Sound Visual Arts Gallery Business Breaking into the Industry Business & Law Production & Management Community GDNet Lounge Coding Horrors Article Writing Comments, Suggestions and Ideas Your Announcements Hobby Project Classifieds Indie Project Showcase Community Developer Journals Gallery Classifieds Jobs Freelancers Hobby Projects GDNet+ Membership Store Marketplace Newsletter » Home » Forums » The Technical Side » For Beginners Chat Watched Content New Content 0 Undefined reference to 'Direct3Dcreate9@4' Started by Stompy9999, Jan 21 2005 12:21 PM Old topic! Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic. Pages 1 2 Next You cannot reply to this topic 35 replies to this topic #1 Stompy9999 Members -Reputation: 792 Like 0Likes Like Posted 21 January 2005 - 12:21 PM This is the exact and only error I recieve when trying to compile a DirectX9 program with Dev-C++. I installed the files on Dev-C++ with a devpak. I set the project as a windows application and linked to d3d9.lib and dxguid.lib. Can someone tell me what I'm doing wrong? -----------------------------Play Stompy's Revenge! Now! Back to top #2 Drew_Benton Crossbones+ -Reputation: 1782 Like 0Likes Like Posted 21 January 2005 - 12:24 PM use either:-ld3d9-ldxguidor#pragma comment(lib,"d3d9.lib")#pragma comment(lib,"dxguid.lib")I think that would fix the proble
Регистрация Регистрация Тесты Блоги Сообщество Поиск Ссылки сообщества Социальные группы Поиск Google по форуму Поиск Yandex по форуму Поиск по форуму Расширенный поиск Тесты Список тестов К странице... @myxasa 14 / 14 / 1 Регистрация: 31.05.2012 Сообщений: 210 Записей в блоге: 2 13.05.2013, 20:04 G++ undefined reference to `Direct3DCreate9@4'" #1 в визуале норм компилил.. даже без путей... а G++ отказывается ! выдаёт undefined reference to `Direct3DCreate9@4'" . В чем проблема? C++1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 http://www.gamedev.net/topic/295963-undefined-reference-to-direct3dcreate94/ 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 http://www.cyberforum.ru/cpp-beginners/thread863853.html 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 // include the basic windows header files and the Direct3D header file #include
reference to `Direct3DCreate9@4'" undeterminable line number Go to Page... Thread Tools Display Modes Jul 19th, 2009, 6:53 AM http://www.programmingforums.org/thread23035.html #1 death 2 all Newbie Join Date: May 2009 Posts: http://forums.codeblocks.org/index.php?topic=6008.0 18 Rep Power: 0 DirectX error: "[Linker error] undefined reference to `Direct3DCreate9@4'" undeterminable line number OK, as well as my roguelike (which is working again now ), I am also completing a DirectX tutorial. I have copied the code exactly, copied the library and header error undefined files correctly, however still get the error "[Linker error] undefined reference to `Direct3DCreate9@4'". I am using Bloodshed Dev-C++, and my code reads: C++ Syntax (Toggle Plain Text) // include the basic windows header files and the Direct3D header file#include
Windows and many major Linux distros here . Home Help Search Login Register Wiki Code::Blocks » User forums » Help » Problems with DX9.0c and MingW « previous next » Send this topic Print Pages: [1] Go Down Author Topic: Problems with DX9.0c and MingW (Read 7181 times) patlecat Multiple posting newcomer Posts: 62 Problems with DX9.0c and MingW « on: May 28, 2007, 01:15:41 pm » I compiled this sample code as Release:Code: [Select]// include the basic windows header files and the Direct3D header file
#include
#include
#include
#include
// define the screen resolution and keyboard macros
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480
#define KEY_DOWN(vk_code) ((GetAsyncKeyState(vk_code) & 0x8000) ? 1 : 0)
#define KEY_UP(vk_code) ((GetAsyncKeyState(vk_code) & 0x8000) ? 0 : 1)
// include the Direct3D Library file
#pragma comment (lib, "d3d9.lib")
// global declarations
LPDIRECT3D9 d3d; // the pointer to our Direct3D interface
LPDIRECT3DDEVICE9 d3ddev; // the pointer to the device class
LPDIRECT3DVERTEXBUFFER9 t_buffer = NULL; // the pointer to the vertex buffer
// function prototypes
void initD3D(HWND hWnd); // sets up and initializes Direct3D
void render_frame(void); // renders a single frame
void cleanD3D(void); // closes Direct3D and releases memory
void init_graphics(void); // 3D declarations
struct CUSTOMVERTEX {FLOAT X, Y, Z, RHW; DWORD COLOR;};
#define CUSTOMFVF (D3DFVF_XYZRHW | D3DFVF_DIFFUSE)
// the WindowProc function prototype
LRESULT CALLBACK WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
// the entry point for any Windows program
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
HWND hWnd;
WNDCLASSEX wc;
ZeroMemory(&wc, sizeof(WNDCLASSEX));
wc.cbSize = sizeof(WNDCLASSEX);
wc.style = CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc = (WNDPROC)WindowProc;
wc.hInstance = hInstance;
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
// wc.hbrBackground = (HBRUSH)COLOR_WINDOW; // not needed any more
wc.lpszClassName = "WindowClass";
RegisterClassEx(&wc);
hWnd = CreateWindowEx(NULL,