Problems

This is a discussion on Problems within the C++ Programming forums, part of the General Programming Boards category; Hey people. I'm having a massive problem with my DevC++. My Dev C++ used to work like a charm about ...

  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    4

    Problems

    Hey people.

    I'm having a massive problem with my DevC++. My Dev C++ used to work like a charm about 4 days ago, but for some reason, EVERY code I try to compile and run comes up with "Linker" error.

    I have not played around with the compiler or the code, these codes used to run until today.

    If anyone could help me ASAP please email me at <<snipped>>

    I really need to figure this out soon as I have a project for class due a little over a week from now.

    Thanks.
    Last edited by Salem; 04-19-2006 at 12:56 AM. Reason: Remove email address

  2. #2
    Registered User
    Join Date
    Mar 2002
    Posts
    1,595
    If nothing else is working you could back up your project files, erase your current copy of DevC++ and download it again to see if the current copy got corrupted somehow.
    You're only born perfect.

  3. #3
    C / C++
    Join Date
    Jan 2006
    Location
    The Netherlands
    Posts
    312
    "Linker error": maybe some headers have accidently been deleted?
    Operating Systems:
    - Ubuntu 9.04
    - XP

    Compiler: gcc

  4. #4
    Registered User
    Join Date
    Aug 2003
    Posts
    1,203
    DevC++ can show some strange behavour if it isnt installed in the default directory. Make sure you wipe everything (all files concerning the program....every damn trace of it) and then try to reinstall to the default directory.
    STL Util a small headers-only library with various utility functions. Mainly for fun but feedback is welcome.

  5. #5
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    DevC++ can show some strange behavour if it isnt installed in the default directory.
    I have my Dev-C++ installed in a custom directory with a space in the path name. It's never had any problems.

    It would really help if you could post the linker error. Maybe you have a problem with projects?
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  6. #6
    Registered User
    Join Date
    Mar 2006
    Posts
    725
    Maybe you just declared a function, used it, and somehow forgot to define it. Or *forgot* this. Or that. Things like this happen.

    And don't post your email address like this, you won't get too much help, but a lot of Spam will be knocking at your door.
    Code:
    #include <stdio.h>
    
    void J(char*a){int f,i=0,c='1';for(;a[i]!='0';++i)if(i==81){
    puts(a);return;}for(;c<='9';++c){for(f=0;f<9;++f)if(a[i-i%27+i%9
    /3*3+f/3*9+f%3]==c||a[i%9+f*9]==c||a[i-i%9+f]==c)goto e;a[i]=c;J(a);a[i]
    ='0';e:;}}int main(int c,char**v){int t=0;if(c>1){for(;v[1][
    t];++t);if(t==81){J(v[1]);return 0;}}puts("sudoku [0-9]{81}");return 1;}

  7. #7
    Registered User
    Join Date
    Apr 2006
    Posts
    4
    I 'THINK' I've figured out what's causing the problems.
    with most of my code, the ones that work are my old ones that don't use "conio"...
    The linker error, it refers to a file in my TEMP folder except the file name always changes and I can never find it. (BTW: I've looked for hidden and system files.)

    I'm using functions like "set..." and "clreol". I'm thinking that those things need conio.

    Does anyone know a link for the Dev-C++ conio?

  8. #8
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    Did you add some extra compiler options? Like "-W -Wall -ansi -pedantic" or something?

    The linker error, it refers to a file in my TEMP folder except the file name always changes and I can never find it. (BTW: I've looked for hidden and system files.)
    This is a temporary .o file created by GCC that always gets deleted before you can find it. Even if you found it you wouldn't glean anything useful from it.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  9. #9
    Registered User
    Join Date
    Apr 2006
    Posts
    4
    I'm using functions to set the background color and stuff, that's about it.

  10. #10
    Registered User
    Join Date
    Apr 2006
    Posts
    4
    Guys, thanks for the help but I've finally solved it.

    Turns out that the compiler options needed -lconio and some option checked....

    What confuses me is... I never even touched those things and the codes used to work. Funny.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. No clue how to make a code to solve problems!
    By ctnzn in forum C Programming
    Replies: 8
    Last Post: 10-16-2008, 02:59 AM
  2. C Pointers Problems
    By mhelal in forum C Programming
    Replies: 8
    Last Post: 01-10-2007, 05:35 AM
  3. String Manipulation problems -_-
    By Astra in forum C Programming
    Replies: 5
    Last Post: 12-13-2006, 04:48 PM
  4. contest problems on my site
    By DavidP in forum Contests Board
    Replies: 4
    Last Post: 01-10-2004, 08:19 PM
  5. DJGPP problems
    By stormswift in forum C Programming
    Replies: 2
    Last Post: 02-26-2002, 03:35 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21