dev-cpp-users Mailing List for Dev-C++ (Page 212)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <per...@ya...> - 2004-06-02 00:51:25
|
I have writed a simple program just only construct two empty linear list.The process of compile is no problem.But after run it,the system crash occur.If I remove the sentence (2),the problem will not come.Can
anyone tell me how to do If I want to use the function InitList() separate to construct two empty list?
Thanks,
Bruce.J
My program list below:
/* A simple program that want to construct two empty linear list */
#define LIST_INIT_SIZE 10
typedef int ARRAY;
typedef struct {
ARRAY *elem; /* a pointer of one dimension array */
int length; /*the linear list current length */
int listsize; /* the linear list's space that has distributed */
}LineList;
/* construct a empty linear list */
ARRAY *InitList(LineList *list)
{
list->elem = (ARRAY *) malloc(LIST_INIT_SIZE * sizeof(ARRAY));
list->length = 0;
list->listsize = LIST_INIT_SIZE;
return list->elem;
}
main()
{
LineList *list, *list1;
/* want to create two empty linear list */
list->elem = InitList(list); /* sentence (1) */
list1->elem = InitList(list1); /* sentence (2) */
system("PAUSE");
}
---------------------------------
Do You Yahoo!?
嫌邮箱太小?雅虎电邮自助扩容! |
|
From: Yeoh HS <ye...@ye...> - 2004-06-01 10:20:33
|
Bruce jjs wrote: > In VC6,the resourc file is graph and easy to use.But when I turn to > use Dev-C++ and write a windows program that need to contain resource > file,I find this IDE is not convenience as VC6.I am a new user in > Dev-C++.Can anyone help me how to use the resource file when do a > windows program in Dev-C++? > Thanks, > Bruce.J > Yes, currently, Dev-C++ does not come with a Visual Resource designer. You can use VC6 to create the .rc file. Then include the rc file in your Dev-C++ project. Best Regards, Yeoh -- |
|
From: <per...@ya...> - 2004-06-01 08:42:09
|
In VC6,the resourc file is graph and easy to use.But when I turn to use Dev-C++ and write a windows program that need to contain resource file,I find this IDE is not convenience as VC6.I am a new user in Dev-C++.Can anyone help me how to use the resource file when do a windows program in Dev-C++?
Thanks,
Bruce.J
---------------------------------
Do You Yahoo!?
嫌邮箱太小?雅虎电邮自助扩容! |
|
From: Sebastien K. <Seb...@un...> - 2004-06-01 07:16:21
|
A 19:49 31/05/2004 -0700, vous avez =E9crit :=20 >>>> I am making a program that needs bitmap images to display, but I dont know what libraries I have to include. Does anyone have any idea what should be included? And one more thing... HELP!! <<<<<< For an easy graphical API, I use SDL (Google it for the URL): easy to make it work, portable (runtime/dev libs for all systems) |
|
From: Billiam <bon...@ya...> - 2004-06-01 02:49:59
|
I am making a program that needs bitmap images to display, but I dont know what libraries I have to include. Does anyone have any idea what should be included? And one more thing... HELP!!
Thanks,
ME!!11oneoneoenwunun
---------------------------------
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger |
|
From: Per W. <pw...@ia...> - 2004-05-31 15:11:59
|
Isn't gprof - available with gcc - a good alternative? /Per W On Mon, 31 May 2004, michele wrote: > hello, > Does someone know a good - free - profiler for dev-c++? > Thanks. > M. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: michele <mic...@li...> - 2004-05-31 14:58:00
|
hello, Does someone know a good - free - profiler for dev-c++? Thanks. M. |
|
From: Yeoh HS <ye...@ye...> - 2004-05-31 12:32:15
|
THAMAE wrote: > Hi! guys I am trying to interface betwbeen C++ (on Dev-C++) and Ms > Access and I can't establish a connection through a system DSN, has any > one achieved this? > Hello, I have an example C++ program that does this. It was written using Dev-C++, NoDSNCpp-V1.0.zip: ODBC DSNless connection in C++. The download URL is: http://www.yeohhs.com/downloads.htm Best Regards, Yeoh -- http://www.yeohhs.com |
|
From: Tim S. <ti...@we...> - 2004-05-31 08:28:56
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 HI Thamae, you wrote: | Hi! guys I am trying to interface betwbeen C++ (on Dev-C++) and Ms | Access and I can't establish a connection through a system DSN, has any | one achieved this? You could check the wxWidget lib, it has an ODBC class for accessing Access and other dbs. For more information have a look at http://www.wxwidgets.org/ HTH Tim - -- http://we-are-teh-b.org/~tim/borg.key -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAuuxDsMXChvH2qP0RAtNBAKC+BUsflKBSjYjEKLuvh6fYGZmDtACfQfYf t/sHiBDTwlPS20y41VP3W7Y= =Z8UF -----END PGP SIGNATURE----- |
|
From: THAMAE <m_t...@ya...> - 2004-05-31 07:15:07
|
Hi! guys I am trying to interface betwbeen C++ (on Dev-C++) and Ms Access and I can't establish a connection through a system DSN, has any one achieved this? --------------------------------- Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger |
|
From: <per...@ya...> - 2004-05-31 06:17:47
|
I used to program in VC6 in past.Now I turn to Dev-cpp,I find it is good to use.Because I was new learner in Dev-cpp,when I want to do Windows program,my problem occur----the resource file is not in graph as in VC6.So is there a tutorial about the resource file program in Dev-cpp?
----Thanks
Bruce.J
---------------------------------
Do You Yahoo!?
嫌邮箱太小?雅虎电邮自助扩容! |
|
From: Toni W. <to...@ik...> - 2004-05-31 03:19:57
|
On Fri, 2004-05-28 at 21:10, Alf C Stockton wrote: > Some questions I should have asked before starting my current project. > > Is anyone on either of these lists using gtk+ to develop applications to run > on Microsoft Windows? In C ? > If yes are you using Dev-C++? > If no what are you using? Sure. I use Emacs as an editor. The binaries for Win32 version of Silky are built on Linux using MinGW (a cross compilation toolchain). -- Toni Willberg - to...@ik... - http://toniw.iki.fi/ Silky - A Gtk2 client for SILC - http://silky.sourceforge.net/ SILC - Secure Internet Live Conferencing - http://www.silcnet.org/ |
|
From: <Fra...@Rh...> - 2004-05-30 23:01:29
|
Ich werde ab 29.05.2004 nicht im B=FCro sein. Ich kehre zur=FCck am 09.06.2004. Ich werde Ihre Nachrichten nach meiner R=FCckkehr bearbeiten. = |
|
From: Per W. <pw...@ia...> - 2004-05-30 10:42:46
|
Note that gsbegin and gsend are _references_ to integers, not pointers, so
the for loop shouldn't use any star for pointer indirection.
/Per W
On Sun, 30 May 2004, Kenneth P. Ruppel wrote:
> I'm getting error message "invalid type argument of 'unary *'" on the
> stmt indicated, and I just don't see why. Couldja help? I've clipped
> out what pertains to these variables. TIA.
> Ken
>
>
>
> // Functions
> void Day1Hit(int &d1, string &day2, vector<string> &mtglist, int
> &gsbegin, int &gsend) {
> cout << "Now in Day1Hit..." << endl;
>
> for (int i= *gsbegin; i < *gsend; i++) {
> ERROR IS FOR THIS STMT
>
> if (*mtglist[i].substr(0,3) == *day2.substr(((*d1+1)*3)-3,3)) {
> cout << "Day1Hit: matched on " << (mtglist[i].substr(0,3) <<
> endl;
> cout << *Day2.substr(((*d1+1)*3)-3,3)) << endl;
> } // end if
> } // end for
> return;} // end Day1Hit
>
>
> vector<string> Mtglist; // Input - loaded from a disk file
> vector<int> Groupset; // subscripts/pointers to Groupset ranges
>
>
> {Here, Groupset is created during a first pass through Mtglist.
> Groupset[n] is the beginning of a range of records in Mtglist to be
> processed.
> Groupset[n+1] is the end of that range of records in Mtglist.
> The last record in any range in Mtglist is called the WDR.}
>
>
> Day1.assign("SMTWTFS");
> Day2.assign("SunMonTueWedThuFriSat");
>
> // gs moves thru Groupset[].
> for (int gs=0; gs < Groupset.size()-1; gs+=2) {
>
> // Process Day1 against the WDR. d1 moves through Day1, looking
> for a hit.
> for (int d1=0; d1 < 7; d1++) {
>
> // I set the next variables for readability and ease of typing.
> D1P=Day1.substr(d1,1);
> WDRP=Mtglist[Groupset[gs+1]].substr(d1+1,1);
>
> if (D1P == WDRP) {
>
> int gsbegin=Groupset[gs]; // record number of beginning
> of a group range in Mtglist
> int gsend=Groupset[gs+1]; // record number of end of that
> group range in Mtglist
>
> Day1Hit(&d1,&Day2,&Mtglist,&gsbegin,&gsend);
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... Oracle 10g.
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Kenneth P. R. <kpr...@op...> - 2004-05-30 09:34:49
|
I'm getting error message "invalid type argument of 'unary *'" on the
stmt indicated, and I just don't see why. Couldja help? I've clipped
out what pertains to these variables. TIA.
Ken
// Functions
void Day1Hit(int &d1, string &day2, vector<string> &mtglist, int
&gsbegin, int &gsend) {
cout << "Now in Day1Hit..." << endl;
for (int i= *gsbegin; i < *gsend; i++) {
ERROR IS FOR THIS STMT
if (*mtglist[i].substr(0,3) == *day2.substr(((*d1+1)*3)-3,3)) {
cout << "Day1Hit: matched on " << (mtglist[i].substr(0,3) <<
endl;
cout << *Day2.substr(((*d1+1)*3)-3,3)) << endl;
} // end if
} // end for
return;} // end Day1Hit
vector<string> Mtglist; // Input - loaded from a disk file
vector<int> Groupset; // subscripts/pointers to Groupset ranges
{Here, Groupset is created during a first pass through Mtglist.
Groupset[n] is the beginning of a range of records in Mtglist to be
processed.
Groupset[n+1] is the end of that range of records in Mtglist.
The last record in any range in Mtglist is called the WDR.}
Day1.assign("SMTWTFS");
Day2.assign("SunMonTueWedThuFriSat");
// gs moves thru Groupset[].
for (int gs=0; gs < Groupset.size()-1; gs+=2) {
// Process Day1 against the WDR. d1 moves through Day1, looking
for a hit.
for (int d1=0; d1 < 7; d1++) {
// I set the next variables for readability and ease of typing.
D1P=Day1.substr(d1,1);
WDRP=Mtglist[Groupset[gs+1]].substr(d1+1,1);
if (D1P == WDRP) {
int gsbegin=Groupset[gs]; // record number of beginning
of a group range in Mtglist
int gsend=Groupset[gs+1]; // record number of end of that
group range in Mtglist
Day1Hit(&d1,&Day2,&Mtglist,&gsbegin,&gsend);
|
|
From: Billiam <bon...@ya...> - 2004-05-29 22:38:49
|
There is. I am going to assume you are using C, not C++, and you are using the console. here it goes. this is probably going to be more complicated and tedious than the \n and \t, but its alot cooler.::
#include <stdio.h>
#include <windows.h>
#include <stdlib.h>
#define SCREEN_WIDTH 79 //this is the default prompt window width( 80
//characters, 0 counts
#define SCREEN_LENGTH 24 //this is the default prompt window length, 25
void DrawColorString(char *szText, int X, int Y, WORD COLORS); //parameters:
//(string you want,x coordinate,y coordinate, the color).
//the colors are:
//BACKGROUND_RED,BACKGROUND_BLUE,BACKGROUND_GREEN,
//BACKGROUND_INTENSITY(makes the background color lighter),
//FOREGROUND_RED,FOREGROUND_BLUE,FOREGROUND_GREEN, and
//FOREGROUND_INTENSITY(makes the foreground color lighter)
void DrawColorString(char *szText, int X, int Y, WORD COLORS)
{
COORD screenPos={X, Y};
WORD *colorBuf=NULL;
DWORD dwResult=0;
HANDLE OutputH;
int length=0;
int i=0;
if(szText == NULL)
return;
OutputH = GetStdHandle(STD_OUTPUT_HANDLE);
length = strlen(szText);
colorBuf = (WORD*)malloc(sizeof(WORD) * length);
for (i=0; i < length; i++)
{
colorBuf[i] = COLORS;
}
WriteConsoleOutputAttribute(OutputH, colorBuf, length, screenPos, &dwResult);
WriteConsoleOutputCharacter(OutputH, szText, length, screenPos, &dwResult);
free(colorBuf);
colorBuf = NULL;
} //if you understand all of that, you do, and if you dont, you dont. lol
int main() {
DrawColorString("Word here!", 7, 2, FOREGROUND_RED | FOREGROUND_INTENSITY | BACKGROUND_GREEN | BACKGROUND_RED | BACKGROUND_INTENSITY);
getchar();
return 0;
}
Noorez Kassam <coo...@ho...> wrote:
I want to output text in a program to the center of the command prompt
window. Is there a function that can help we with it so that I don't have to
use the '\n' and '\t' characters?
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN Premium
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
---------------------------------
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger |
|
From: Ewald H. <in...@ho...> - 2004-05-29 22:28:21
|
> Noorez Kassam wrote: > > > I want to output text in a program to the center of the command prompt > > window. Is there a function that can help we with it so that I don't > > have to use the '\n' and '\t' characters? > Check out http://www.hornlabs.co.za/sources/colours.cpp as it contains text positioning and colour examples. Hope it helps Ewald Horn Proprietor/Eienaar : Horn Labs Cell/Sel : 083 519 1615 Website : http://www.hornlabs.co.za Email/E-pos : in...@ho... |
|
From: Daniel K. O. <dan...@ya...> - 2004-05-29 21:55:00
|
Noorez Kassam wrote: > I want to output text in a program to the center of the command prompt > window. Is there a function that can help we with it so that I don't > have to use the '\n' and '\t' characters? SetConsoleCursorPosition(), from Win32 API. Look also for the other functions in the same group (like GetStdHandle()). Daniel K. O. |
|
From: Noorez K. <coo...@ho...> - 2004-05-29 21:27:32
|
I want to output text in a program to the center of the command prompt window. Is there a function that can help we with it so that I don't have to use the '\n' and '\t' characters? _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN Premium http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines |
|
From: Alf C S. <al...@st...> - 2004-05-29 17:08:17
|
On Sat, 29 May 2004, Per Westermark wrote: > How about putting -mms-bitfields among the compiler switches and then post > the compiler output. Then maybe we can help with the 'output filename' > problem. > Thank you Per. I replaced the "pkg-config gtk+-2.0 --cflags" in the compile options with your suggested -mms-bitfields leaving "pkg-config gtk+-2.0 --clibs" in the linker and now I have an executable which runs without errors. I wonder just how much this has to do with rebooting Windows. BTW pkg-config runs fine in my setup. Ladies & Gentlemen thank you for your help so far and now for my next trick I need to make this program call MS SQL and Oracle stored procedurers. --- Regards, Alf Stockton www.stockton.co.za Gravity is a myth, the Earth sucks. |
|
From: Alf C S. <al...@st...> - 2004-05-29 17:08:09
|
On Sat, 29 May 2004, Tor Lillqvist wrote: > > Why use IDEs if they cause problems like this? Why not start by > learning how to compile and link a hello-world program from the > command line, then continue on to write a Makefile for more complex > programs. > Been there and done that. The current problem is that although I have successfully worked with Watcom 11c and Visual Studio C++ 6 and VB 6 I wanted this project produced in an Open Source product and that it should be able to run on both Linux & Windows. and Dev-C++ was a new tool and I could not resist. --- Regards, Alf Stockton www.stockton.co.za A "No" uttered from deepest conviction is better and greater than a "Yes" merely uttered to please, or what is worse, to avoid trouble. -- Mahatma Ghandi |
|
From: Alf C S. <al...@st...> - 2004-05-29 16:38:36
|
On Fri, 28 May 2004, Daniel K. O. wrote: > Alf C Stockton wrote: > > >Is anyone on either of these lists using gtk+ to develop applications to run > >on Microsoft Windows? In C ? > > > > > > I'm one of the maintainers of a port of Lopster (a Napster/IRC client). > http://winlop.sourceforge.net > > > >If yes are you using Dev-C++? > > > > > Yes. And I also have installed all the MinGW toys (MinGW, MSYS, MSYS > Developer Tool Kit, MinGW utils, binutils, gdb, etc). > > > > PS1: By the way, you guys were discussing a while ago about the flags to > use in GTK+ apps... why don't just use `pkg-config gtk+-2.0 --cflags` in > the compiler flags and `pkg-config gtk+-2.0 --libs` in the linker flags, > as it says in the docs? (and obviously the -mms-bitfields and > -mno-cygwin options) Of course, considering you have pkg-config. > Thank you all. I have added `pkg-config gtk+-2.0 --cflags` to compile options and now gcc tells me "cannot specify -o with -c or -S and multiple compilation" and yes I have 4 different .c source files in my project. Do I need to put these source files together into one file? --- Regards, Alf Stockton www.stockton.co.za When the speaker and he to whom he is speaks do not understand, that is metaphysics. -- Voltaire |
|
From: Tor L. <tm...@ik...> - 2004-05-29 14:30:43
|
Alf C Stockton writes: > Tor thank you for this suggestion but when I attempt it by adding > the -mms-bitfields to the linker options I still get "Incompatible > build!" & when I add it to the compiler switches I get told by > cc1.exe that "output filename specified twice". Well, look closely at what command line the IDE actually tries to run to compile. Is there something weird with it? Is there just one -o option, immediately followed by an object file name? Somehow the IDE manages to invoke the compiler with a mixed-up command line. Why use IDEs if they cause problems like this? Why not start by learning how to compile and link a hello-world program from the command line, then continue on to write a Makefile for more complex programs. --tml |
|
From: Per W. <pw...@ia...> - 2004-05-29 13:16:35
|
How about putting -mms-bitfields among the compiler switches and then post
the compiler output. Then maybe we can help with the 'output filename'
problem.
/Per W
On Sat, 29 May 2004, Alf C Stockton wrote:
> Thank you for all the replies I received it makes me feel good that I am not
> necessarily the only one on the bleeding edge of using Open Source on Windows.
>
> While I attempt some of the compiler/linker switches suggested may I put the
> following problem forward again.
>
> I am now getting Gtk-ERROR** Incompatible Build when I attempt to
> run my Linux developed application on Windows.
> >
> Tor Lillqvist <tm...@ik...> original reply was:-
>
> > Doesn't the message say what to do? This message comes from this
> > g_error() call:
> >
> > g_error ("Incompatible build!\n"
> > "The code using GTK+ thinks GtkWindow is of different\n"
> > "size than it actually is in this build of GTK+.\n"
> > "On Windows, this probably means that you have compiled\n"
> > "your code with gcc without the -fnative-struct\n"
> > "(or -mms-bitfields) switch, or that you are using\n"
> > "an unsupported compiler.");
> >
> > I.e. you need to compile your source code with the -mms-bitfields gcc
> > switch.
> >
>
> Tor thank you for this suggestion but when I attempt it by adding the
> -mms-bitfields to the linker options I still get "Incompatible build!" & when I
> add it to the compiler switches I get told by cc1.exe that "output filename
> specified twice".
>
> I get the same effect if I use -fnative-struct so now I am really confused.
>
>
>
>
> ---
>
> Regards,
> Alf Stockton www.stockton.co.za
>
> There's only one way to have a happy marriage and as soon as I learn
> what it is I'll get married again.
> -- Clint Eastwood
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... Oracle 10g.
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Alf C S. <al...@st...> - 2004-05-29 11:56:42
|
Thank you for all the replies I received it makes me feel good that I am not
necessarily the only one on the bleeding edge of using Open Source on Windows.
While I attempt some of the compiler/linker switches suggested may I put the
following problem forward again.
I am now getting Gtk-ERROR** Incompatible Build when I attempt to
run my Linux developed application on Windows.
>
Tor Lillqvist <tm...@ik...> original reply was:-
> Doesn't the message say what to do? This message comes from this
> g_error() call:
>
> g_error ("Incompatible build!\n"
> "The code using GTK+ thinks GtkWindow is of different\n"
> "size than it actually is in this build of GTK+.\n"
> "On Windows, this probably means that you have compiled\n"
> "your code with gcc without the -fnative-struct\n"
> "(or -mms-bitfields) switch, or that you are using\n"
> "an unsupported compiler.");
>
> I.e. you need to compile your source code with the -mms-bitfields gcc
> switch.
>
Tor thank you for this suggestion but when I attempt it by adding the
-mms-bitfields to the linker options I still get "Incompatible build!" & when I
add it to the compiler switches I get told by cc1.exe that "output filename
specified twice".
I get the same effect if I use -fnative-struct so now I am really confused.
---
Regards,
Alf Stockton www.stockton.co.za
There's only one way to have a happy marriage and as soon as I learn
what it is I'll get married again.
-- Clint Eastwood
|