The UDF library you are trying to load (libudf) is not compiled for 3d on the current
Hi All,
I'm trying to do a dynamic meshing using custom UDF. I have installed microsoft visual c++ 2010 express & Microsoft SDK v7.0 and .NET 3.5. I tried opening the Fluent V14.5 from SDK CMD Shell and compile my UDF. But Whenever, I try compile my UDF I get an error as follows "The UDF library you are trying to load (libudf) is not compiled for 3d on the current platform (win64)." It would be really helpful if someone assist me in resolving this issue. Please let me know if you require additional details to resolve this error. Regards, Vignesh V. |
The error message tells you what you did, and what went wrong.
Quote:
Second keyword: not compiled. Your code is not compiled. The obvious solution for this: compile your code. If you have problems compiling your code, show the message you get when you try to compile your code. Not the error message you get when you try to load your code. |
Please find the error displayed as below
HTML Code:
Copied C:\Users\vignesh.v\Desktop\gerotor_test/C:\Users\vignesh.v\Desktop\gerotor_test\gerotor.c to libudf\src |
Look at the first error you see:
Quote:
"..\..\src\gerotor.c": This means that the error is in this file. This is probably the file you are working on. "(540)": this is the line number in which the error is. "error C2143: syntax error": this is the type of error. An error in the syntax. "missing ';' before 'type'": you forgot to type a ';', and probably it should go somewhere before 'type'. If 'type' is the first word on that line, you probably forgot a ';' on the line before. |
Hi Pakk,
But the same file is compiling in Linux version of Ansys. Can you help me in compiling in Windows version of Ansys. Regards, Vignesh V. |
I am doing that. I tell you where the mistake is, and what you should change. What more do you want? Do you expect me to hack into your computer and change the code for you? ;)
|
I can share my screen or provide remote access to fix this issue. Kindly please help me in fixing this issue.
|
I have already told you what to do.
If you already did that: what was the outcome? If you did not do that: why did you not do that? |
1 Attachment(s)
I have tried the same file in linux which is working good. My question is why its not compiling in Windows. The errors which are listed are meaningless and If you can really help me I would appreciate it. Please find the attached file for your reference.
|
For you the errors may be meaningless, but that is why I explained you what the error is.
Did you do anything with that information? Nobody expects you to suddenly become a programming expert, but when I show you in which file the error is, and in which line number, I am sure you could have looked up which line that is. Did you even do that? |
If you could help me, Please help or give way to those who could resolve my issue.
|
If you don't want to be helped, then don't come here. If you want to be helped, take the advice you get.
It are three simple steps: 1. Look at the code where the error is. 2. Understand the error. 3. Fix the error. I can help you in all three steps. But you have to do something. I instructed you several times to do the first step, but for some reason you just don't do that. Look at line 540 of the file 'gerotor.c'. I can't give instructions in a simpler way than this. You can't fix code without looking at the code, so you will have to look at the code. Do that! |
I notice that you don't follow my advice. I also see that you keep saying that you would appreciate it if I could help you, this gives the impression that for you it does not feel as if I am helping you.
On the other hand, I feel as if I am doing everything I can do to help you. I explained you what you first error message meant, I explained step by step what your second error message meant, I translated the error message into plain English, and I told you three times that the key to your solution would be to look up line 540. I really don't know what more you can reasonably expect from anybody to help you. Can you tell me what I did to give you the feeling that I am not helping? |
I found the error is because of c++ C90 compiler incompatibility.
|
I have fixed the error by changing the compiler. Now the file is compiling and when I load these compiled UDF I get this error as below
HTML Code:
Error: |
Track your udf.
Use Message("line 1 is correct"\n); after each and every line. This is easiest method to get rid of from the access violation error. Hope this helps shiv |
Hi Shivakumar,
My UDF is compiling and hope there is no error in compilation. But when I load UDF its is throwing out the error as above. Can you please tell me why do I get this error. Regards, Vignesh |
I had the same problem earlier.
I can give an example Code:
---- shiv |
UDF comilation error on Linux system
1 Attachment(s)
Hello ,
when I am compiling one UDF on window its working fine but the same case when I am trying on the Linux system that time its not getting compiled and giving the below shown error. Thanks in advance. Regards, Sonu. |
It is very difficult to find the mistake in your code without seeing your code.
My best guess is that you wrote a comment on line 66 or line 67 like this: Code:
\\this is a comment The correct way to write comments: Code:
\* this is a comment *\ |
All times are GMT -4. The time now is 06:08. |