OS Windows 98
Dev-C++ Newest at the moment
I'm getting this strange error
cannot find -lobjc
That line contains - MessageBox(NULL,"Please vote for this code at PlanetSourceCode.com","I'm begging you!",NULL);
-
And here's all int - int InitGL(void){
-
MessageBox(NULL,"Please vote for this code at PlanetSourceCode.com","I'm begging you!",NULL);
-
createlevel("levels/test0.txt",curlvl);
-
initcamera(mainc);
-
LoadGLTextures();
-
glShadeModel(GL_SMOOTH);
-
glClearColor(0.0f, 0.0f,0.0f, 0.5f);
-
glClearDepth(1.0f);
-
glEnable(GL_DEPTH_TEST);
-
glDepthFunc(GL_LEQUAL);
-
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
-
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
-
initdeftiles();
-
ticks=GetTickCount();
-
return true;
-
}
-
Please help to fix it.
9 5876 horace1 1,510
Recognized Expert Top Contributor
OS Windows 98
Dev-C++ Newest at the moment
I'm getting this strange error
cannot find -lobjc
That line contains - MessageBox(NULL,"Please vote for this code at PlanetSourceCode.com","I'm begging you!",NULL);
-
Please help to fix it.
I thought the 4'th paramet to MessageBox() was a UINT that specified the contents and behavior of the dialog box and NULL (the C++ null pointer) would not be suitable. Try -
MessageBox(NULL,"Please vote for this code at PlanetSourceCode.com","I'm begging you!",MB_OK);
-
I know what was the problem.. It's my compiler...
I get this error when I use 'Link and Objective C Program' option. When I don't use it I get linking errors.. I got no idea how to fix them.
Maybe anyone can suggest other compiler?
horace1 1,510
Recognized Expert Top Contributor
I know what was the problem.. It's my compiler...
I get this error when I use 'Link and Objective C Program' option. When I don't use it I get linking errors.. I got no idea how to fix them.
Maybe anyone can suggest other compiler?
I tried the function call -
MessageBox(NULL,"Please vote for this code at PlanetSourceCode.com","I'm begging you!",MB_OK);
-
with DEV-C++ using a Windows Application project - it worked OK
Just great, when I use that linking option I can't compile at all...
It always says "552 C:\WINDOWS\Desk top\Untitled1.c pp cannot find -lobjc"
Maybe anyone had this problem before?
horace1 1,510
Recognized Expert Top Contributor
Just great, when I use that linking option I can't compile at all...
It always says "552 C:\WINDOWS\Desk top\Untitled1.c pp cannot find -lobjc"
Maybe anyone had this problem before?
when you downloaded DEV-C++ did you include the Mingw compiler and libraries? If not try downloading it.
Yeh, I checked Download Updates/Packs option and now downloading newer version.
And it's still same error =[
When I check compile log: - Compiler: Default compiler
-
Executing g++.exe...
-
g++.exe "C:\WINDOWS\Desktop\Untitled1.cpp" -o "C:\WINDOWS\Desktop\Untitled1.exe" -ansi -traditional-cpp -w -fno-access-control -fmessage-length=0 -I"C:\DEV-CPP\lib\gcc\mingw32\3.4.2\include" -I"C:\DEV-CPP\include\c++\3.4.2\backward" -I"C:\DEV-CPP\include\c++\3.4.2\mingw32" -I"C:\DEV-CPP\include\c++\3.4.2" -I"C:\DEV-CPP\include" -I"C:\Dev-Cpp\lib" -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -L"C:\DEV-CPP\lib" -lobjc -fmessage-length=0
-
C:\DEV-CPP\Bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lobjc
-
collect2: ld returned 1 exit status
-
-
Execution terminated
-
horace1 1,510
Recognized Expert Top Contributor
veer odd, if I run DEV-C++ and create a New file (no project!) and paste and save the following code as a C++ file -
#include <iostream>
-
#include <windows.h>
-
-
using namespace std;
-
-
int main(int argc, char *argv[])
-
{
-
MessageBox(NULL,"Please vote for this code at PlanetSourceCode.com","I'm begging you!",MB_OK);
-
system("PAUSE");
-
return EXIT_SUCCESS;
-
}
-
it compiles and runs and the message box appears OK
Yes it is.
Here I'm trying to compile other code. It don't have any errors at all, but these - cannot find -lobjc
-
ld returned 1 exit status
But when I disable that Linking Option everything works for other code and compiles successfully. But for first code (when all used, not piece) I get linking errors:
There's total 100 or so errors
I've got exactly same problem....
in eclipse-cdt:
Severity and Description Path Resource Location Creation Time Id
undefined reference to `glBegin@4' SDL1 Lesson36.cpp line 201 1206461675109 1149
undefined reference to `glClear@4' SDL1 Lesson36.cpp line 330 1206461675125 1157
undefined reference to `glClearColor@1 6' SDL1 Lesson36.cpp line 79 1206461675109 1141
undefined reference to `glColor4f@16' SDL1 Lesson36.cpp line 204 1206461675109 1150
undefined reference to `glEnd@0' SDL1 Lesson36.cpp line 213 1206461675125 1155
undefined reference to `glGetError@0' SDL1 Lesson36.cpp line 91 1206461675109 1147
undefined reference to `glLoadIdentity @0' SDL1 Lesson36.cpp line 83 1206461675109 1143
undefined reference to `glLoadIdentity @0' SDL1 Lesson36.cpp line 88 1206461675109 1146
undefined reference to `glLoadIdentity @0' SDL1 Lesson36.cpp line 216 1206461675125 1156
undefined reference to `glMatrixMode@4 ' SDL1 Lesson36.cpp line 82 1206461675109 1142
undefined reference to `glMatrixMode@4 ' SDL1 Lesson36.cpp line 87 1206461675109 1145
undefined reference to `glOrtho@48' SDL1 Lesson36.cpp line 84 1206461675109 1144
undefined reference to `glTranslatef@1 2' SDL1 Lesson36.cpp line 198 1206461675109 1148
undefined reference to `glVertex3f@12' SDL1 Lesson36.cpp line 207 1206461675109 1151
undefined reference to `glVertex3f@12' SDL1 Lesson36.cpp line 208 1206461675109 1152
undefined reference to `glVertex3f@12' SDL1 Lesson36.cpp line 209 1206461675109 1153
undefined reference to `glVertex3f@12' SDL1 Lesson36.cpp line 210 1206461675125 1154
in vs 2005 c++ express:
Error 1 error LNK2019: unresolved external symbol __imp__glGetErr or@0 referenced in function "bool __cdecl init_GL(void)" (?init_GL@@YA_N XZ) Lesson36.obj
Error 2 error LNK2019: unresolved external symbol __imp__glOrtho@ 48 referenced in function "bool __cdecl init_GL(void)" (?init_GL@@YA_N XZ) Lesson36.obj
Error 3 error LNK2019: unresolved external symbol __imp__glLoadId entity@0 referenced in function "bool __cdecl init_GL(void)" (?init_GL@@YA_N XZ) Lesson36.obj
Error 4 error LNK2019: unresolved external symbol __imp__glMatrix Mode@4 referenced in function "bool __cdecl init_GL(void)" (?init_GL@@YA_N XZ) Lesson36.obj
Error 5 error LNK2019: unresolved external symbol __imp__glClearC olor@16 referenced in function "bool __cdecl init_GL(void)" (?init_GL@@YA_N XZ) Lesson36.obj
Error 6 error LNK2019: unresolved external symbol __imp__glEnd@0 referenced in function "public: void __thiscall Square::show(vo id)" (?show@Square@@ QAEXXZ) Lesson36.obj
Error 7 error LNK2019: unresolved external symbol __imp__glVertex 3f@12 referenced in function "public: void __thiscall Square::show(vo id)" (?show@Square@@ QAEXXZ) Lesson36.obj
Error 8 error LNK2019: unresolved external symbol __imp__glColor4 f@16 referenced in function "public: void __thiscall Square::show(vo id)" (?show@Square@@ QAEXXZ) Lesson36.obj
Error 9 error LNK2019: unresolved external symbol __imp__glBegin@ 4 referenced in function "public: void __thiscall Square::show(vo id)" (?show@Square@@ QAEXXZ) Lesson36.obj
Error 10 error LNK2019: unresolved external symbol __imp__glTransl atef@12 referenced in function "public: void __thiscall Square::show(vo id)" (?show@Square@@ QAEXXZ) Lesson36.obj
Error 11 error LNK2019: unresolved external symbol __imp__glClear@ 4 referenced in function _SDL_main Lesson36.obj
Error 12 fatal error LNK1120: 11 unresolved externals
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Jack Smith |
last post by:
Help needed on this question. Any help is appreciated. Thanks in
advance.
Given a binary string (i.e. a finite sequence of 0's and 1's) we
choose any two digit substring 01 and replace it by a string of the
form 100...0 using an arbitrary (but finite) number of zeros. Prove
by induction that this transformation can not be performed infinitely
many times, i.e. this sequence of transformations must terminate for
any input string.
|
by: Ronald Tan |
last post by:
I keep getting this error when running my Java Apps on Resin.
java.net.SocketException: Can't assign requested address
Does anyone know what is the cause? I have tried checking if the IP address
and port has been used...they are all free.
Resin running on HP UX.
TIA
|
by: worzel |
last post by:
Hi All,
I am looking for a reg ex that will match email addresses withing <a
href=mailto blah > links.
Actually, I already crafted my own, but with a slight problem:
<a href="mailto:fred@blah.com"> emal me</a> woud be matched as expected, but
so will:
|
by: Jie |
last post by:
Does anyone know why I keep having the following error. I have to rebuild
the solution every time I run it in design mode. thanks
jie
Server Error in '/ReapPortal' Application.
----------------------------------------------------------------------------
----
Compilation Error
|
by: Willie |
last post by:
I try to setup SQL Server to work with .NET Framework
Anyone here willing to help?
Step By Step Help Needed.
Thanks
| |
by: Ed Jay |
last post by:
This is part of another quest for solution I've posted, but I'm getting no
responses.
My script is:
var popwin;
function launchwin(winurl,winname,winfeatures) {
if (popwin) {popwin.close();}
popwin = window.open(winurl,winname,winfeatures);
popwin.focus();
|
by: leaf0209 |
last post by:
Hi,
I am new to this forum and have been troubled by this problem for the past few days. I would appreciate if someone would take a look and help me out.
I am using vb express 2005 edition...
Dim sql As String = "SELECT * FROM SB_ADWarning"
Dim strConnString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\SB_2000.mdb"
Dim Con As New OleDbConnection(strConnString)
Dim da As New OleDbDataAdapter(sql, Con)
Dim ds As New...
|
by: xmanin |
last post by:
i have developed some functions in module using which i want to download CSV files from a Stock exchange server. everything is fine but i am unable to download CSV file, i get following msg "3011 The Microsoft Jet database engine could not find the object 'http://www.nseindia.com/content/historical/EQUITIES/2007/SEP/'. Make sure the object exists and that you spell its name and the path name correctly." however when i check the values in debug...
|
by: Joel Fireman |
last post by:
Help Needed: Upgrade Fedora 4 / Apache 2 to PHP 5.2.x from 5.0.4
I've been testing Joomla as a content manager for the County offices,
and it looks pretty good. Unfortunately, I decided to upgrade it from
the 1.0.13 version to 1.5 as we get ready to go live with the web
site... and the update installation gives an error in XML processing,
which seems (from what I've been able to dredge up in forum
discussions) to stem from a known bug in...
|
by: slizorn |
last post by:
hi guys,
i get the following error when i try to create a new TreeNode
error C2514: 'TreeNode' : class has no constructors
this error is caused by the following line:
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |