Home > Linker Error > Linker Error Undefined Symbol Main In Module

Linker Error Undefined Symbol Main In Module

Start a new discussion instead. Copyright Quinstreet Inc. 2002-2016 GIDForums > Computer Programming Forums > C Programming Language Linker Error: Undefined Symbol User Name Remember Me? Code: #include #include #include class student { int rollno; char name[20]; int tm; public: void input(); void transfer(); void output(); }; void student::input() { char ch='y'; ofstream outf; outf.open("mark.dat"); while(ch=='y') { Please upload a file larger than 100x100 pixels We are experiencing some problems, please try again. click site

Comments on this post the eVil piXel  agrees : agreed Nobody is perfect. But if either of the following are true, then seriously reconsider the "Value" you are getting from the school... how to get rid of this : I get this error undefined symbol _main in module c0.ASM ??? So i use turbo c++ and i don't know much about c++ programing. http://forums.devshed.com/programming/788154-linker-error-undefined-symbol-_main-module-c0-asm-post2599949.html

What you're learning now is not what C++ is today or has been for 10 years now, and whoever mandated that this compiler be used is doing you more harm than If you already have an int Pascal WinMain(HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpCmdLine, int nCmdShow), your IDE hasn't understood you're trying to make a Windows program. That is not meant to be "mean" or "rude", but is a simple statement of fact.

How can I get >rid of this error message? So what you are being taught can actually HURT your career. For example, none of those headers (, , etc.) exist on many C++ compilers, since they are obsolete. Also it is outputted 3 times. #include #include #include class student { int rollno; char name[20]; int tm; public: void input(); void transfer(); void output(); } obj; void student::input() { char

What is the difference (if any) between "not true" and "false"? Devshed Novice (500 - 999 posts)          Join Date Jun 2004 Posts 715 Rep Power 260 It should have been Code: int main() How can I get : rid of this error message? http://www.programmersheaven.com/discussion/242951/linker-problem Also When i enter more than 1 entry only the last entry is outputted.

The module you have just attempted to build/link does not contain your "main" procedure. : thanks : Peter TTFN Fraz Sun, 20 Apr 1997 16:36:38 GMT Page 1 of But i don't know where i should put it. it should be int main (even though the compiler also accepts the current version) Debugging is twice as hard as writing the code in the first place. I am Nobody.

What kind of project have you created? https://www.gidforums.com/t-19857.html If you wish to continue this conversation start a new topic. So i cannot implement instructions you give on modern c++. So i cannot implement instructions you give on modern c++. "Modern" C++ is over 10 years old.

I am surprised you are using something more than 10 years old (closer to 20 years old), especially when there are free C++ compilers (gcc is one of them) that use get redirected here int main() { double radius; //radius of circle double length; //length of rectangle double width; //width of rectangle double base; //base length of triangle double height; //height of triangle int number; But when more than one entry is used it out puts only 1 or 2. Can anyone help me?

Microsoft MVP (Visual C++) Reply With Quote February 24th, 2009,06:24 AM #3 tharun518 View Profile View Forum Posts Junior Member Join Date Feb 2009 Posts 8 Re: Please find and correct When I tried to make (link) the program, the following error occured:linker error: undefined symbol _main in module C0.ASMCould you tell me how to fix it?I'm using Turbo C++ 3.0 under Plz help regards *** MOD EDIT: Added code tags. navigate to this website How can I get >rid of this error message?

Curently finishing a small project, when my boss asked that the report should include the person Photo... Message Insert Code Snippet Alt+I Code Inline Code Link H1 H2 Preview Submit your Reply Alt+S Ask a Different Software Development Question Related Articles Saving Image and Text with parameters in Categories 141.9K All Categories104.8K Programming Languages 6.4K Assembler Developer 1.9K Basic 39.9K C and C++ 4.3K C# 7.9K Delphi and Kylix 4 Haskell 9.6K Java 4.1K Pascal 1.3K Perl 2K PHP

Please help me out!!!

I'm struggling to understand why and how to fix this. If you wish to continue this conversation start a new topic. bc 3.11 linker error: undefined symbol _main in module c0.asm. You position in life is very likely to be influenced for many many years depending on how you handle this.

Regards, Paul McKenzie Last edited by Paul McKenzie; February 25th, 2009 at 08:15 PM. Faq February 15th, 2011,01:54 AM #5 No Profile Picture the eVil piXel View Profile View Forum Posts  Registered User Devshed Newbie (0 - 499 posts)     The C code itself is correct, assuming you are using Windows. –Thomas Padron-McCarthy Nov 4 '14 at 6:57 1 Since the error seems not to be in the code you http://softacoustik.com/linker-error/linker-error-undefined-symbol-in-module-in-c.php Look under "target" or something similar. -- Miguel Carrasquer ____________________ ~~~ Amsterdam [

Java program using arrays, loops, and randoms.? how to get rid of this I get this error undefined symbol _main in module c0.ASM ??? Posted 25 September 2009 - 04:07 AM #include #include int strindex(char s[],char t[]) { gets(s); gets(t); puts(s); getch(); puts(t); getch(); int i,j,k; for(i=0;s[i]!='\0';i++) { for(j=i,k=0;t[k]=='\0' && s[j]==t[k];j++,k++) ; if(k>0 && t[k]=='\0') Linker Error: Undefined symbol _main in module ___ 3.

Also dont hijack and old thread with a new problem. You can only upload photos smaller than 5 MB. The time now is 12:55 AM. Reply With Quote February 25th, 2009,11:48 AM #11 Paul McKenzie View Profile View Forum Posts Elite Member Power Poster Join Date Apr 1999 Posts 27,449 Re: Please find and correct the

All rights reserved Home Forums Articles Badges Privacy Policy Support Sitemap Newsletter Signup Free Web Developer Tools

current community chat Stack Overflow Meta Stack Overflow your communities Sign up Advanced Search Forum Visual C++ & C++ Programming C++ (Non Visual C++ Issues) Please find and correct the error in my c++ program. "Linker Error: Undefined symbol If this is your This is … Recommended Articles Saving Image and Text with parameters in VB.net Last Post 8 Hours Ago Hello Guys! Actually this particular error is being generated because he didn't use a space between void and main, and the compiler is not recognizing "voidmain".

how to get rid of this undefined symbol _main in module c0.ASM ??