From supravatpaul_surya at yahoo.co.in  Sun Jul  5 14:00:04 2009
From: supravatpaul_surya at yahoo.co.in (supravat paul)
Date: Sun, 5 Jul 2009 18:30:04 +0530 (IST)
Subject: Help In C
In-Reply-To: <mailman.959.1226555981.7936.ubuntu-motu-mentors@lists.ubuntu.com>
References: <mailman.959.1226555981.7936.ubuntu-motu-mentors@lists.ubuntu.com>
Message-ID: <265372.50339.qm@web8606.mail.in.yahoo.com>

Hello every one I'm using Ubuntu 9.04 Linux.... I'm facing some problem while compiling my C program:::

    

#include<stdio.h>
#include<stdlib.h>
#include<string.h>

intmain (intargc,char*argv[])	/* Main function */
{
    charcont;
    printf("Want
to enter new text? y/n: ");
    cont=getch();
    if(cont=='y')
    {
        printf("Enter
text for %s",argv[1]);
    }
    returnEXIT_SUCCESS;
}
while compiling this code with the help of following command 
$gcc -o q2 q2.c
it gives me the following error...

supravat at supravat-desktop:~/c/Done$ gcc -o q2 q2.c
/tmp/cc07EFXt.o: In function `main':
q2.c:(.text+0x42): undefined reference to `getch'
collect2: ld returned 1 exit status

This code runs successfully in Windows.... Please help me...


      Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-motu-mentors/attachments/20090705/73a40cea/attachment.htm 

From david.sugar at canonical.com  Sun Jul  5 21:55:13 2009
From: david.sugar at canonical.com (David Sugar)
Date: Sun, 05 Jul 2009 16:55:13 -0400
Subject: Help In C
In-Reply-To: <265372.50339.qm@web8606.mail.in.yahoo.com>
References: <mailman.959.1226555981.7936.ubuntu-motu-mentors@lists.ubuntu.com>
	<265372.50339.qm@web8606.mail.in.yahoo.com>
Message-ID: <4A511331.9030002@canonical.com>

getch() is neither part of the ansi C standard library, nor part of
glibc.  It is a Microsoft specific C library function that, at least
originally for DOS applications, used an old DOS INT 21 function to
directly read the keyboard device.  There is a distantly related getch()
function in ncurses that may do something roughly similar, but you would
need to #include <curses.h> and link with -lncurses, and it may not
behave the same.  The ansi C library function you may want to use
instead is getchar().  In both cases, though, these are based on using a
generic stdin stream the process is attached to when it is executed
rather than a "keyboard device".

In the case of ncurses getch(), the keys are extracted from stdin based
on the current TERM mapping and hence multiple byte sequences for
function and arrow keys are decoded and returned as a single key input,
hence this behavior is perhaps most similar to what Microsoft's getch()
does.  In the case of standard C getchar(), only one character byte is
retrieved at a time from stdin in all cases, so for example a function
or arrow key will appear as multiple inputs.

supravat paul wrote:
> Hello every one I'm using Ubuntu 9.04 Linux.... I'm facing some problem
> while compiling my C program:::
> 
> 
> *#include<stdio.h>*
> 
> *#include<stdlib.h>*
> 
> *#include<string.h>*
> 
> 
> *int* main (*int* argc,*char* *argv[]) /* Main function */
> 
> {
> 
> *    char* cont;
> 
> *    printf*("Want to enter new text? y/n: ");
> 
>     cont=*getch();*
> 
> *    if*(cont=='y')
> 
>     {
> 
> *        printf*("Enter text for %s",argv[1]);
> 
>     }
> 
> *    return* EXIT_SUCCESS;
> 
> }
> 
> 
> while compiling this code with the help of following command
> $gcc -o q2 q2.c
> it gives me the following error...
> 
> supravat at supravat-desktop:~/c/Done$ gcc -o q2 q2.c
> /tmp/cc07EFXt.o: In function `main':
> q2.c:(.text+0x42): undefined reference to `getch'
> collect2: ld returned 1 exit status
> 
> This code runs successfully in Windows.... Please help me...
> 
> 
> 
> ------------------------------------------------------------------------
> Love Cricket? Check out live scores, photos, video highlights and more.
> Click here
> <http://in.rd.yahoo.com/tagline_cricket_2/*http://cricket.yahoo.com>.
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: david_sugar.vcf
Type: text/x-vcard
Size: 241 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/ubuntu-motu-mentors/attachments/20090705/0e2eff46/attachment.vcf 

From james.burkle at gmail.com  Sun Jul  5 21:57:42 2009
From: james.burkle at gmail.com (James Burkle)
Date: Sun, 5 Jul 2009 16:57:42 -0400
Subject: Help In C
In-Reply-To: <265372.50339.qm@web8606.mail.in.yahoo.com>
References: <mailman.959.1226555981.7936.ubuntu-motu-mentors@lists.ubuntu.com>
	<265372.50339.qm@web8606.mail.in.yahoo.com>
Message-ID: <C603E56D-4585-4546-808D-E2F198BF3CC1@gmail.com>

This has absolutely nothing to do with motu....


Sent from my iPhone

On Jul 5, 2009, at 9:00 AM, supravat paul <supravatpaul_surya at yahoo.co.in 
 > wrote:

> Hello every one I'm using Ubuntu 9.04 Linux.... I'm facing some  
> problem while compiling my C program:::
>
>
> #include<stdio.h>
> #include<stdlib.h>
> #include<string.h>
>
> int main (int argc,char *argv[])	/* Main function */
> {
>     char cont;
>     printf("Want to enter new text? y/n: ");
>     cont=getch();
>     if(cont=='y')
>     {
>         printf("Enter text for %s",argv[1]);
>     }
>     return EXIT_SUCCESS;
> }
>
> while compiling this code with the help of following command
> $gcc -o q2 q2.c
> it gives me the following error...
>
> supravat at supravat-desktop:~/c/Done$ gcc -o q2 q2.c
> /tmp/cc07EFXt.o: In function `main':
> q2.c:(.text+0x42): undefined reference to `getch'
> collect2: ld returned 1 exit status
>
> This code runs successfully in Windows.... Please help me...
>
>
>
> Love Cricket? Check out live scores, photos, video highlights and  
> more. Click here.
> -- 
> Ubuntu-motu-mentors mailing list
> Ubuntu-motu-mentors at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-motu-mentors
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-motu-mentors/attachments/20090705/a6747bdf/attachment.htm 

From jmarsden at fastmail.fm  Sun Jul  5 22:06:49 2009
From: jmarsden at fastmail.fm (Jonathan Marsden)
Date: Sun, 05 Jul 2009 14:06:49 -0700
Subject: Help In C
In-Reply-To: <265372.50339.qm@web8606.mail.in.yahoo.com>
References: <mailman.959.1226555981.7936.ubuntu-motu-mentors@lists.ubuntu.com>
	<265372.50339.qm@web8606.mail.in.yahoo.com>
Message-ID: <4A5115E9.40007@fastmail.fm>

supravat paul wrote:

> Hello every one I'm using Ubuntu 9.04 Linux.... I'm facing some
> problem while compiling my C program:::

This is not the correct mailing list for beginner C programming
questions.  This list is for those seeking help in becoming a Ubuntu MOTU.

> /tmp/cc07EFXt.o: In function `main':
> q2.c:(.text+0x42): undefined reference to `getch'
> collect2: ld returned 1 exit status

The function getch() is not a standard C function.  Try using getchar()
instead.  But please, seek C programming help from a C programming list,
not here on ubuntu-motu-mentors.

Jonathan


From evanrmurphy at gmail.com  Mon Jul  6 18:32:41 2009
From: evanrmurphy at gmail.com (Evan R. Murphy)
Date: Mon, 6 Jul 2009 12:32:41 -0500
Subject: Help In C
In-Reply-To: <4A5115E9.40007@fastmail.fm>
References: <mailman.959.1226555981.7936.ubuntu-motu-mentors@lists.ubuntu.com>
	<265372.50339.qm@web8606.mail.in.yahoo.com>
	<4A5115E9.40007@fastmail.fm>
Message-ID: <50c8be3c0907061032h7ed03a12o660140c364a5c2d2@mail.gmail.com>

2009/7/5 Jonathan Marsden <jmarsden at fastmail.fm>:
> supravat paul wrote:
>
>> Hello every one I'm using Ubuntu 9.04 Linux.... I'm facing some
>> problem while compiling my C program:::
>
> This is not the correct mailing list for beginner C programming
> questions. ?This list is for those seeking help in becoming a Ubuntu MOTU.
> [...]

supravat paul, perhaps you could help by letting us know what gave you
the impression that this was a good place to ask your question. Were
you directed from a web page, for instance, where the purpose of this
mailing list was not stated clearly enough? Your feedback would be
appreciated, and I hope the previous posts have answered your
question.

Regards,
Evan R. Murphy


From juanje.ojeda at gmail.com  Tue Jul 21 01:08:14 2009
From: juanje.ojeda at gmail.com (=?ISO-8859-1?Q?Juan_Jes=FAs_Ojeda_Croissier?=)
Date: Tue, 21 Jul 2009 02:08:14 +0200
Subject: How to maintain an upstream package with bzr?
Message-ID: <135eeb1d0907201708n53a65bb0y5379a0aed4ba9883@mail.gmail.com>

Hi ;-)

I'm working at Guadalnex distribution (which is an Ubuntu derivative
one) and we have some software we (or people for us) has made and we
like to get into Debian and Ubuntu. That software was always released
as a debian package and we are maintaining them now in Launchpad with
bazaar.

Well, my problem is that I'm don't know (and I've been reading and
searching a lot the last 3 weeks) how is the proper way to do it.
I'll explain myself... Before we had a bad version style, we were
versioning the packages as a native packages (0.1.3 or 1.0.2guada2).
That was really easy for us and our buildding system (a buildbot with
some home made hooks) was working fine. The problem show up when we
change the version to non-native package (0.1.3-1 or 1.0.2-2). Then
lintian cry about the "debian/watch" file or a "get-orig-source"
target at "debian/rules" file. Also de dpkg-buildpackage ask for a
*.orig.tar.gz file which doesn't exist...

We don't release tarballs and we don't really want to do it (if we can
avoid it). We are upstream project and the ones who maintain the
packages and is a lot easier to maintain everything in the same bazaar
branch.

I've been tring to create a debian/watch file or get-orig-source
target to export the source and create a *.orig.tar.gz but it wasn't
working well. Actually I think the debian/watch or the get-orig-source
did't get called.. but now I not quite sure... to much tests...
Is there anythink, but to create de debian/watch file, I need to do to
get it called? I was following the doc I found at the wiki[1] and more
other info I found in internet.

I also tried 'bzr builddeb', wich was working fine with the 'split
mode', but my problem is that when I try to build the package with
'pbuilder' or similar tool, it doesn't call 'bzr builddeb', so It
doesn't make the magic with the export and so on.
I didn't try to upload that way to my ppa or revu because I guessed
that it doesn't work with pbuilder in my machine, neither it will on
Ubuntu servers.

My question is: Is there any way to maintain a package with bazaar
without to have to release the tarballs?

If there is no way we will release the tarball and change the
debian/watch files, but now I'm really courious about if there is a
way.

Thanks for your time :-)

PS: BTW, it could be interesting for the training sessions to have one
about how to manage new non-native packages in Ubuntu. I think many
people here create new tools which are not Ubuntu exclusive and
probably they'are been released as native package just because the
difference is not always clear at the documentation. Well, at least I
know a few friends that happened to them.

[1] https://wiki.ubuntu.com/PackagingGuide/Examples/ChangingTheOrigTarball
-- 
Juanje


From jordanhewi at gmail.com  Thu Jul 23 17:34:40 2009
From: jordanhewi at gmail.com (Jordan)
Date: Thu, 23 Jul 2009 09:34:40 -0700
Subject: Mentor, Please
Message-ID: <4A689120.6070104@gmail.com>

Hello, I'm new here.  Is anybody willing to be my mentor?  Thanks.


From jordanhewi at gmail.com  Thu Jul 23 19:21:56 2009
From: jordanhewi at gmail.com (Jordan)
Date: Thu, 23 Jul 2009 11:21:56 -0700
Subject: Mentor Request
Message-ID: <4A68AA44.9090306@gmail.com>

Hi, I'm Jordan, I'm 22 years old, I live in the United States, and my 
mother tongue is English.

I'm currently a junior in college pursuing a CS degree.  Here are a few 
languages in which I have experience: C, C++,  Java, Scheme, PHP, MySQL, 
Javascript, and some assembly.  Although I've mainly done web 
development, I'm mostly interested in developing at a lower level in 
areas such as Ubuntu applications.

I've been using Ubuntu off-and-on since about 2006.  I've occasionally 
switched to other OS's for a bit since they seemed more compatible with 
my hardware, but Ubuntu has remained constant.

My launchpad URL is http://www.launchpad.net/~hewij.


From ricardocanastro at gmail.com  Thu Jul 23 18:52:50 2009
From: ricardocanastro at gmail.com (Ricardo Canastro)
Date: Thu, 23 Jul 2009 18:52:50 +0100
Subject: Mentor, Please
In-Reply-To: <4A689120.6070104@gmail.com>
References: <4A689120.6070104@gmail.com>
Message-ID: <f549d3280907231052g4d1a76a9hd2a15ba50074fc94@mail.gmail.com>

Hello,

I'm not experienced arround here. But you better check the application
examples at:
https://wiki.ubuntu.com/MOTU/Mentoring/Junior_Contributor


2009/7/23 Jordan <jordanhewi at gmail.com>

> Hello, I'm new here.  Is anybody willing to be my mentor?  Thanks.
>
> --
> Ubuntu-motu-mentors mailing list
> Ubuntu-motu-mentors at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-motu-mentors
>



-- 
Ricardo Canastro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-motu-mentors/attachments/20090723/51764659/attachment.htm 

