By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,500 Members | 1,571 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,500 IT Pros & Developers. It's quick & easy.

Using eclipse for C++ project: error launching 'cygin'

momotaro
100+
P: 357
I m trying to use eclipse for c but when i creat a project and try to build i have this error message: error launching 'cygin'...
plz help!
Feb 20 '07 #1
Share this Question
Share on Google+
24 Replies


sicarie
Expert Mod 2.5K+
P: 4,677
I m trying to use eclipse for c but when i creat a project and try to build i have this error message: error launching 'cygin'...
plz help!
cygin or cygwin?

If it's the latter - I'm betting that there is a config issue with how Eclipse is installed and set up. (If it's the former, I have no idea - unless that's the config issue....)
Feb 20 '07 #2

momotaro
100+
P: 357
It is cygwin and i think that every thing is ok with the path....
realy i don't understand
Feb 20 '07 #3

sicarie
Expert Mod 2.5K+
P: 4,677
It is cygwin and i think that every thing is ok with the path....
realy i don't understand
Check out this link and see if it helps.
Feb 20 '07 #4

momotaro
100+
P: 357
thx but still having the same probem: error launching 'cygpath' command
Feb 20 '07 #5

RedSon
Expert 5K+
P: 5,000
Make sure that your cygwin binaries are visible to eclipse. The cygpath program is a utility that converts Windows native filenames to Cygwin POSIX-style pathnames and vice versa. It can be used when a Cygwin program needs to pass a file name to a native Windows program, or expects to get a file name from a native Windows program. Alternatively, cygpath can output information about the location of important system directories in either format.
Feb 20 '07 #6

sicarie
Expert Mod 2.5K+
P: 4,677
Make sure that your cygwin binaries are visible to eclipse. The cygpath program is a utility that converts Windows native filenames to Cygwin POSIX-style pathnames and vice versa. It can be used when a Cygwin program needs to pass a file name to a native Windows program, or expects to get a file name from a native Windows program. Alternatively, cygpath can output information about the location of important system directories in either format.
Another thing to check is the classpath - to see if it is enclosed in quotation marks "c:/path/to/cygwin/binary". If so, remove those (but save the path!)
Feb 20 '07 #7

momotaro
100+
P: 357
AM using mingw...
Feb 20 '07 #8

momotaro
100+
P: 357
am trying to use eclipse for c but while building i keep having this problem!!!!!!
ERROR LAUNCHING 'cygpath' COMMAND.

PLZ HELP!!!!
Feb 21 '07 #9

sicarie
Expert Mod 2.5K+
P: 4,677
am trying to use eclipse for c but while building i keep having this problem!!!!!!
ERROR LAUNCHING 'cygpath' COMMAND.

PLZ HELP!!!!
Momotaro-

Please do not double post, if you feel the thread has moved out of view of the experts of the forum, (after a reasonable amount of time) post a ::bump:: reply to it, that will bring it back to the top.
Feb 21 '07 #10

momotaro
100+
P: 357
how to do it?
Feb 21 '07 #11

RedSon
Expert 5K+
P: 5,000
Didnt I answer it in your other post?
Feb 21 '07 #12

momotaro
100+
P: 357
sorry but it did not solve the problem!
Feb 21 '07 #13

RedSon
Expert 5K+
P: 5,000
did you post what you tried to do to fix it after reading my post and what other issues you are having or what the error message is? Try continuing this discussion in the original post so that this one can be closed, since it is a duplicate.
Feb 21 '07 #14

AdrianH
Expert 100+
P: 1,251
how to do it?
Just reply to the thread with '::bump::'.

Any activity on a thread will move it to the top of the list.

Since I do not know what RedSon has posted, I could be reposting the same answer. But you will have to do the following:
  • Window->Preferences->C/C++->Debug->Common Source Lookup Path
  • Click on Add->Path Mapping
  • Click on the new mapping then click on Edit
  • Name the mapping what ever you want.
  • Click on Add
  • In the compilation path type \cygdrive\c
  • In the local system path type c:\
  • Click Ok
  • If you have other paths (such as you want to add d drive, you may also want to add the include path but that is up to you) go to step 5
  • Click Ok
  • Click Ok
You may have to restart Eclipse for this to work.

Hope this helps.


Adrian
Feb 21 '07 #15

RedSon
Expert 5K+
P: 5,000
I said you need to take a look at your elicpse path. I did not provide the steps to do it.
Feb 21 '07 #16

AdrianH
Expert 100+
P: 1,251
Where is the original post?

Adrian
Feb 21 '07 #17

AdrianH
Expert 100+
P: 1,251
BTW, what I stated probably won't work. When I reread your question, looks like your path environment variable is set wrong.


Adrian
Feb 21 '07 #18

RedSon
Expert 5K+
P: 5,000
Where is the original post?

Adrian
aqui .
Feb 21 '07 #19

momotaro
100+
P: 357
as i said am using mingw not cyg...
so am realy confused!
Feb 21 '07 #20

RedSon
Expert 5K+
P: 5,000
Here is another link for the same type of problem you are having.

http://yongshin.blogspot.com/2005/11...r-eclipse.html
Feb 21 '07 #21

AdrianH
Expert 100+
P: 1,251
as i said am using mingw not cyg...
so am realy confused!
Ok, I've merged the two threads into one.

Now momotaro, it sounds like you really are confused. If what RedSon has pointed you at doesn't work. You may want to restate your problem. Don't double post. Post back to this thread.

If the problem is that you are getting a error executing cygpath and you are using MinGW, it is probably that you have set your compiler options incorrectly. When I was first using it, I think I saw one but can't remember where.

Do you have both MinGW and cygwin installed or just MinGW? If you have both, they will probably conflict without special percautions.

We'll get you through this, you just have to do some of the work too.


Adrian
Feb 21 '07 #22

momotaro
100+
P: 357
Thx a lot!!!!!
Feb 21 '07 #23

AdrianH
Expert 100+
P: 1,251
Thx a lot!!!!!
Hmm, was that sarcasim, or did we help you?


Adrian
Feb 21 '07 #24

RedSon
Expert 5K+
P: 5,000
Lets hope for the latter...
Feb 21 '07 #25

Post your reply

Sign in to post your reply or Sign up for a free account.