Linker Error Undefined Reference To Direct3dcreate9
to do on some forum but it didn't fix any thing#include %26lt;d3d9.h%26gt;#pragma comment (lib, "libd3dx9.a")#pragma comment (lib, "libd3d9.a")Compile LogCompiler: Default compilerExecuting g++.exe...g++.exe "C:\Dev-Cpp\mycode\d3d.cpp" -o "C:\Dev-Cpp\mycode\d3d.exe" -I"lib\gcc\mingw32\3.4.2\include" -I"include\c++\3.4.2\backward" -I"include\c++\3.4.2\mingw32" -I"include\c++\3.4.2" -I"include" -L"lib" C:\DOCUME~1\MUM%26amp;DA~1\LOCALS~1\Temp/cc4... undefined reference to `Direct3DCreate9@4'collect2: ld returned 1 exit statusExecution terminatedDev c++ direct x [linker error] undefined reference to 'Direct3DCreate9@4'?Simply go to "project-%26gt;project options" and link libd3dx9.a and libd3d9.a. These are the libraries you need.The preprocessor directives #pragma comment (lib, "libd3dx9.a")#pragma comment (lib, "libd3d9.a")are intended for Visual C++ I believe.Reply:Direct3DCreate9 is defined in d3d9.h. With Microsoft compiler, import library d3d9.lib is required for d3d9.h. Linking for my D3D9 benchmark includes:link /LARGEADDRESSAWARE d3d9.lib dxerr9.lib winmm.lib d3dx9.lib kernel32.lib bufferoverflowu.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib Posted by tin at 2:29 AM No comments: Post a Comment Newer Post Older Post Home Subscribe to: Post Comments (Atom) c++ include Blog Archive ► 2010 (94) ► May (94) ▼ 2009 (235) ► August (47) ▼ July (188) Error in C program ? Why i cant run my C on my vista PC properly? How do I correct failure notices including mailer-... Wierd freeing up space- used space 58GB. When sele... Helping with C++ program to compare the value of t... What do you think of "Mere Chrisianity" by C.S. Le... Why it is included that VB.NET,C#.NET etc in visua... The products of a combustion reaction do NOT inclu... The products of a combustion reaction do NOT inclu... Need help with io in C++, have read much programme... Does anyone know the lyrics for pill poppin animal... Washington D.C.- cheap, decent hotel? C++ Header file question (SystemInfo.h)? Help with c program? RVs include:? Includi
reference to `Direct3DCreate9@4'" undeterminable line number Go to Page... Thread Tools Display Modes Jul 19th, 2009, 6:53 AM #1 death 2 all Newbie Join Date: May 2009 Posts: 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 http://tin-c-include.blogspot.com/2009/07/dev-c-direct-x-linker-error-undefined.html completing a DirectX tutorial. I have copied the code exactly, copied the library and header 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 http://www.programmingforums.org/thread23035.html the Direct3D header file#include
Регистрация Регистрация Тесты Блоги Сообщество Поиск Ссылки сообщества Социальные группы Поиск Google по форуму Поиск Yandex по форуму Поиск по форуму Расширенный поиск Тесты Список тестов К странице... @myxasa 14 / 14 / 1 Регистрация: 31.05.2012 Сообщений: 210 Записей в блоге: 2 13.05.2013, 20:04 G++ undefined reference to `Direct3DCreate9@4'" #1 в визуале норм компилил.. даже http://www.cyberforum.ru/cpp-beginners/thread863853.html без путей... а 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 72 73 74 75 76 linker error 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 161 162 163 164 165 166 167 linker error undefined 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